-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (33 loc) · 802 Bytes
/
Copy pathDockerfile
File metadata and controls
41 lines (33 loc) · 802 Bytes
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
30
31
32
33
34
35
36
37
38
39
40
41
FROM python:3.8-alpine3.12
WORKDIR /srv
# Update package index
RUN apk update
# Add base build dependencies
RUN apk add build-base python3-dev
# Add development tools
RUN apk add git curl openssh
# Add extra build dependencies
#
# Dependency graph:
# - psycopg2
# - postgresql-dev
# - Pillow:
# - jpeg-dev
# - zlib-dev
RUN apk add jpeg-dev zlib-dev postgresql-dev
# Install application requirements
COPY requirements requirements
RUN pip install -U pip
RUN pip install -Ur requirements/production.txt
# Copy main application source files
COPY docker-entrypoint.sh docker-entrypoint.sh
COPY test.sh test.sh
COPY pytest.ini .
COPY scripts scripts
COPY manage.py .
COPY settings.py settings.py
COPY tests tests
COPY lib lib
COPY apps apps
# Setup main command
CMD ["./docker-entrypoint.sh"]