Don't initialize in container
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Lukáš Kucharczyk 2023-01-03 12:34:50 +01:00
parent f2076a6cd0
commit ec4a095425
2 changed files with 6 additions and 2 deletions

View File

@ -13,7 +13,8 @@ RUN git clone https://git.kucharczyk.xyz/lukas/timetracker.git /home/timetracker
WORKDIR /home/timetracker/app
RUN chown -R timetracker /home/timetracker/app
RUN poetry install
RUN make initialize
RUN make loadplatforms
EXPOSE 8000
VOLUME [ "/home/timetracker/app/src/web/db.sqlite3" ]
USER timetracker
CMD [ "python3", "src/web/manage.py", "runserver", "0.0.0.0:8000" ]

View File

@ -2,10 +2,13 @@
all: css migrate
initialize: css migrate loadplatforms
initialize: npm css migrate loadplatforms
HTMLFILES := $(shell find src/web/tracker/templates -type f)
npm:
npm install
css: src/input.css
npx tailwindcss -i ./src/input.css -o ./src/web/tracker/static/base.css