Note: The default ITS GitLab runner is a shared resource and is subject to slowdowns during heavy usage.
You can run your own GitLab runner that is dedicated just to your group if you need to avoid processing delays.

Commit a2e4d47e authored by Jon Yu's avatar Jon Yu
Browse files

Add a way to have dev, prod requirements.txt

parent 0a6e0623
FROM python:3.8-slim
ARG ENVIRONMENT="PRODUCTION"
ENV PYTHONUNBUFFERED=1
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
......@@ -7,7 +9,12 @@ WORKDIR /usr/src/app
COPY . /usr/src/app
RUN pip install -r requirements.txt
RUN set -x; \
if [ "${ENVIRONMENT}" = "DEVELOPMENT" ]; then \
pip install -r requirements.txt; \
else \
pip install -r requirements.prod.txt; \
fi;
# Workaround for permission issue on OpenShift
RUN chmod -R g+rw /usr/src/app
......
......@@ -2,7 +2,10 @@ version: '3'
services:
app:
build: .
build:
context: .
args:
ENVIRONMENT: DEVELOPMENT
env_file: .env
ports:
- 127.0.0.1:8000:8000
......
asgiref==3.2.7
certifi==2019.11.28
cffi==1.14.0
chardet==3.0.4
cryptography==2.8
Django==3.0.4
gunicorn==20.0.4
idna==2.9
josepy==1.3.0
mozilla-django-oidc==1.2.3
pycparser==2.20
pyOpenSSL==19.1.0
pytz==2019.3
requests==2.23.0
six==1.14.0
sqlparse==0.3.1
urllib3==1.25.8
whitenoise==5.0.1
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment