2022-02-21 18:32:14 +01:00
|
|
|
FROM python:slim
|
|
|
|
|
|
|
|
COPY requirements.txt .
|
|
|
|
RUN pip3 install -r requirements.txt
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
EXPOSE 8000
|
|
|
|
ENTRYPOINT ["gunicorn", "wsgi:app", \
|
2022-02-22 11:37:54 +01:00
|
|
|
"--bind", "0.0.0.0:8000", \
|
2022-02-21 18:32:14 +01:00
|
|
|
"--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" \
|
|
|
|
]
|