Skip to content

Commit d0031ea

Browse files
committed
Dockerfile update
1 parent 35e1c47 commit d0031ea

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

Dockerfile

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@ RUN pip install -r requirements.txt
88

99
COPY . .
1010

11-
ENV NUM_WORKERS=4
11+
RUN mkdir -p /app/asgi.sock
1212

13-
ARG SOCKFILE
14-
15-
CMD ["sh", "-c", "gunicorn config.asgi:application \
16-
--name django-backend \
17-
--workers $NUM_WORKERS \
18-
-k uvicorn.workers.UvicornWorker \
19-
--bind unix:$SOCKFILE \
20-
--log-level=debug \
21-
--log-file=/app/logs/gunicorn.log"]
13+
CMD ["gunicorn", "--workers", "4", "--bind", "unix:/app/asgi.sock", "config.asgi:application"]

0 commit comments

Comments
 (0)