From 1ccfdc321aaf98062db0b5d3d4d200f70a26b105 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Sat, 7 Jan 2023 21:59:17 +0100 Subject: [PATCH] Start caddy in the background --- Dockerfile | 2 +- entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b5c8a70..1dfaabd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ diff --git a/entrypoint.sh b/entrypoint.sh index 1955a36..e2a5970 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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