-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
39 lines (32 loc) · 1.07 KB
/
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
FROM debian:jessie
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y \
build-essential nodejs npm locales \
git libffi-dev libgit2-dev libpq-dev \
python3 python3-dev python3-setuptools
RUN easy_install3 pip wheel virtualenv
RUN ln -s $(which nodejs) /usr/bin/node
RUN echo 'en_AU.UTF-8 UTF-8' > /etc/locale.gen && locale-gen && update-locale LANG=en_AU.UTF-8
ENV LANG en_AU.UTF-8
RUN mkdir -p /code/data
WORKDIR /code
ADD package.json /code/package.json
ADD bower.json /code/bower.json
ADD _deps_html.sh /code/_deps_html.sh
RUN ./_deps_html.sh
ADD _deps_collectstatic.sh /code/_deps_collectstatic.sh
RUN ./_deps_collectstatic.sh
ENV WHEELS_ONLY=1
ADD requirements.txt /code/requirements.txt
ADD test-requirements.txt /code/test-requirements.txt
ADD _deps_python.sh /code/_deps_python.sh
RUN ./_deps_python.sh
ADD entrypoint.sh /code/entrypoint.sh
ADD manage.py /code/manage.py
ADD dockci /code/dockci
ADD tests /code/tests
ADD pylint.conf /code/pylint.conf
ADD alembic /code/alembic
EXPOSE 5000
ENTRYPOINT ["/code/entrypoint.sh"]
CMD ["run"]