-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
dev_api.Dockerfile
56 lines (47 loc) · 1.2 KB
/
dev_api.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
FROM docker.io/debian:bullseye-slim
ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL en_US.UTF-8
RUN set -x \
&& apt-get update \
&& apt-get -y upgrade \
&& apt-get -y --no-install-recommends install locales \
&& echo "en_US.UTF-8 UTF-8" > /etc/locale.gen \
&& locale-gen en_US.UTF-8 \
&& dpkg-reconfigure locales \
&& /usr/sbin/update-locale LANG=en_US.UTF-8
COPY ./ /var/www/
WORKDIR /var/www/
RUN set -x \
&& apt-get -y --no-install-recommends install \
python3 \
python3-chardet \
python3-colorama \
python3-html5lib \
python3-pkg-resources \
python3-requests \
python3-six \
python3-urllib3 \
libgeos-c1v5 \
libpq5 \
libffi7 \
make \
python3-dev \
python3-pip \
libgeos-dev \
libffi-dev \
libpq-dev \
virtualenv \
gcc \
git
RUN set -x \
&& make -f config/docker-dev install \
&& make -f config/docker-dev .build/dev-requirements.timestamp \
&& py3compile -f .build/venv/ \
&& rm -fr .cache \
&& apt-get -y purge \
&& apt-get -y --purge autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV version='' \
PATH=/var/www/.build/venv/bin/:$PATH
RUN make -f config/docker-dev template