Fix bash evaluation in Dockerfile entrypoint

This commit is contained in:
Marco Aceti 2022-02-22 12:03:40 +01:00
parent ee77081caf
commit c2dd5caf52
No known key found for this signature in database
GPG key ID: E4ABA81298E4F14D

View file

@ -6,11 +6,4 @@ RUN pip3 install -r requirements.txt
COPY . . COPY . .
EXPOSE 8000 EXPOSE 8000
ENTRYPOINT ["gunicorn", "wsgi:app", \ 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"]
"--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" \
]