From ec4a09542507b162ca31bff9fa3cbd00f9d8ebb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Tue, 3 Jan 2023 12:34:50 +0100 Subject: [PATCH] Don't initialize in container --- Dockerfile | 3 ++- Makefile | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) 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