-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (21 loc) · 837 Bytes
/
Dockerfile
File metadata and controls
30 lines (21 loc) · 837 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
FROM python:2-alpine3.6
MAINTAINER "EEA: IDM2 C-TEAM" <eea-edw-c-team-alerts@googlegroups.com>
ENV PROJ_DIR=/var/local/tct/
RUN runDeps="gcc musl-dev gettext postgresql-dev netcat-openbsd libressl-dev openldap-dev" \
&& apk add --no-cache $runDeps
RUN apk add --no-cache --virtual .build-deps \
gcc musl-dev postgresql-dev libressl-dev \
&& apk add --no-cache \
gettext netcat-openbsd openldap-dev \
&& mkdir -p $PROJ_DIR
# Add requirements.txt before rest of repo for caching
COPY requirements.txt $PROJ_DIR
WORKDIR $PROJ_DIR
RUN pip install --no-cache-dir -r requirements.txt \
&& apk del .build-deps
COPY . $PROJ_DIR
RUN python manage.py makemessages \
&& python manage.py compilemessages \
&& python manage.py collectstatic --noinput
ENTRYPOINT ["./docker-entrypoint.sh"]
CMD ["run"]