From c2dd5caf52b39d9fe813f68329b38ff09e20024f Mon Sep 17 00:00:00 2001 From: Marco Aceti Date: Tue, 22 Feb 2022 12:03:40 +0100 Subject: [PATCH] Fix bash evaluation in Dockerfile entrypoint --- Dockerfile | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0839d6b..a74d7f3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,11 +6,4 @@ RUN pip3 install -r requirements.txt COPY . . EXPOSE 8000 -ENTRYPOINT ["gunicorn", "wsgi:app", \ - "--bind", "0.0.0.0:8000", \ - "--env", "CAPTCHA_CLIENT_KEY=$CAPTCHA_CLIENT_KEY", \ - "--env", "CAPTCHA_SERVER_KEY=$CAPTCHA_SERVER_KEY", \ - "--env", "OF_INSTANCE=$OF_INSTANCE", \ - "--env", "OF_ADMIN_EMAIL=$OF_ADMIN_EMAIL", \ - "--env", "OF_ADMIN_PASSWORD=$OF_ADMIN_PASSWORD" \ -] +ENTRYPOINT ["/bin/bash", "-c", "gunicorn wsgi:app --bind 0.0.0.0:8000 --env CAPTCHA_CLIENT_KEY=$CAPTCHA_CLIENT_KEY --env CAPTCHA_SERVER_KEY=$CAPTCHA_SERVER_KEY --env OF_INSTANCE=$OF_INSTANCE --env OF_ADMIN_EMAIL=$OF_ADMIN_EMAIL --env OF_ADMIN_PASSWORD=$OF_ADMIN_PASSWORD"]