-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (23 loc) · 985 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Dockerfile
# Pull base image
FROM python:3.8-buster
# Set environment variables
ENV PYTHONUNBUFFERED 1
ENV ENVIRONMENT production
ENV SECRET_KEY 'Do not edit this key in Dockerfile, you bloody monkey! Go for appropriate docker-compose'
ENV SOCIAL_AUTH_GOOGLE_OAUTH2_KEY 'Do not edit this key in Dockerfile, you bloody monkey! Go for appropriate docker-compose'
ENV SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET 'Do not edit this key in Dockerfile, you bloody monkey! Go for appropriate docker-compose'
# Install system dependencies
RUN printf "\ndeb http://httpredir.debian.org/debian buster main non-free contrib \
\ndeb-src http://httpredir.debian.org/debian buster main non-free contrib" > \
/etc/apt/sources.list.d/backports.list \
&& apt-get update \
&& apt-get build-dep -yq python3-psycopg2
RUN pip install pipenv
# Install python dependencies
COPY Pipfile* /app/
WORKDIR /app
RUN pipenv install --system --deploy
# Copy project files
COPY . /app
CMD ["/app/run.sh"]