overleaf-registration/Dockerfile
2022-02-21 18:40:10 +01:00

15 lines
452 B
Docker

FROM python:slim
COPY requirements.txt .
RUN pip3 install -r requirements.txt
COPY . .
EXPOSE 8000
ENTRYPOINT ["gunicorn", "wsgi:app", \
"--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" \
]