Collect static files in entrypoint.sh
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Lukáš Kucharczyk 2023-01-07 18:10:36 +01:00
parent 9dead362c1
commit d029fda896
2 changed files with 4 additions and 1 deletions

View File

@ -6,7 +6,7 @@ RUN npm install && \
FROM python:3.10-slim-bullseye
ENV VERSION_NUMBER 0.1.0-50-gd81dba7
ENV VERSION_NUMBER 0.1.0-51-g9dead36
ENV PROD 1
RUN useradd --create-home --uid 1000 timetracker

View File

@ -3,6 +3,9 @@
echo "Apply database migrations"
poetry run python src/web/manage.py migrate
echo "Collect static files"
poetry run python src/web/manage.py collectstatic
# Start server
echo "Starting server"
poetry run python src/web/manage.py runserver 0.0.0.0:8000