15 lines
452 B
Docker
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" \
|
|
]
|