-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
41 lines (26 loc) · 903 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
30
31
32
33
34
35
36
37
38
39
40
41
# WARNING: keep this file in sync with ./Dockerfile
FROM python:3.7
ENV PYTHONUNBUFFERED 1
ENV TZ=Europe/Zurich
RUN git config --global user.email "dev@apptitude.com"
RUN git config --global user.name "Apptitude Automation"
# Install gettext (to collect translations) and timezone data
RUN apt-get update
RUN apt-get install -y gettext tzdata
RUN mkdir /code
WORKDIR /code
# Install python dependencies
ADD requirements.txt /code/
RUN pip install -r requirements.txt
# Copy source code
ADD . /code/
COPY ./build/arcv2_platform/static/assets /code/arcv2_platform/static/assets
RUN pip install .
RUN flake8 .
# Uncomment the follwing lines to automatically collect static
# files & compile translated messages once the django project
# has been generated.
RUN python manage.py collectstatic --no-input
# RUN python manage.py compilemessages
ENV PATH="/code/bin:${PATH}"
CMD ["./start.sh"]