From f974f3748e31f627ef0bb734efa984996e2d2558 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Mon, 2 Jan 2023 18:26:24 +0100 Subject: [PATCH] Update Dockerfile --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1b2887f..6a4e798 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,8 @@ RUN pip install --no-cache-dir poetry RUN useradd --create-home --uid 1000 timetracker RUN git clone https://git.kucharczyk.xyz/lukas/timetracker.git /home/timetracker/app WORKDIR /home/timetracker/app +RUN chown -R timetracker /home/timetracker/app RUN poetry install -USER timetracker EXPOSE 8000 -CMD [ "python3", "src/web/manage.py", "runserver" ] \ No newline at end of file +USER timetracker +CMD [ "python3", "src/web/manage.py", "runserver", "0.0.0.0:8000" ] \ No newline at end of file