diff --git a/Dockerfile b/Dockerfile index b29962d..d04259d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ] \ No newline at end of file diff --git a/Makefile b/Makefile index 2d31fdb..8690924 100644 --- a/Makefile +++ b/Makefile @@ -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