Update Dockerfile

This commit is contained in:
Lukáš Kucharczyk 2023-01-02 18:26:24 +01:00
parent 381884371e
commit f974f3748e
1 changed files with 3 additions and 2 deletions

View File

@ -7,7 +7,8 @@ RUN pip install --no-cache-dir poetry
RUN useradd --create-home --uid 1000 timetracker RUN useradd --create-home --uid 1000 timetracker
RUN git clone https://git.kucharczyk.xyz/lukas/timetracker.git /home/timetracker/app RUN git clone https://git.kucharczyk.xyz/lukas/timetracker.git /home/timetracker/app
WORKDIR /home/timetracker/app WORKDIR /home/timetracker/app
RUN chown -R timetracker /home/timetracker/app
RUN poetry install RUN poetry install
USER timetracker
EXPOSE 8000 EXPOSE 8000
CMD [ "python3", "src/web/manage.py", "runserver" ] USER timetracker
CMD [ "python3", "src/web/manage.py", "runserver", "0.0.0.0:8000" ]