From 63d67e42d4910af839c1c802e89ca440b0134c4c Mon Sep 17 00:00:00 2001
From: Ernesto Rico Schmidt <ernesto@helsinki.at>
Date: Tue, 27 Sep 2022 21:36:58 -0400
Subject: [PATCH] Restore CMD with sh for prod

This should be enough for now
---
 Dockerfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index 5e3f1d64..d0855601 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -23,4 +23,4 @@ CMD ["poetry", "run", "python", "manage.py", "runserver", "0.0.0.0:8000"]
 FROM base AS prod
 
 COPY . .
-CMD ["poetry", "run", "gunicorn", "-b", "0.0.0.0:8000", "steering.wsgi"]
+CMD ["sh", "-c", "poetry run gunicorn --bind 0.0.0.0:8000 --workers $(nproc) steering.wsgi"]
-- 
GitLab