Start caddy in the background

This commit is contained in:
Lukáš Kucharczyk 2023-01-07 21:59:17 +01:00
parent 25a58c2732
commit 1ccfdc321a
Signed by: lukas
SSH Key Fingerprint: SHA256:vMuSwvwAvcT6htVAioMP7rzzwMQNi3roESyhv+nAxeg
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ RUN npm install && \
FROM python:3.10.9-alpine
ENV VERSION_NUMBER 0.1.1-5-g270d9f7
ENV VERSION_NUMBER 0.1.1-6-g25a58c2
ENV PROD 1
RUN apk add \

View File

@ -8,6 +8,6 @@ echo "Collect static files"
poetry run python src/web/manage.py collectstatic
echo "Starting server"
caddy run
caddy start
cd src/web || exit
poetry run python -m gunicorn --bind 0.0.0.0:8001 web.asgi:application -k uvicorn.workers.UvicornWorker