-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
36 lines (28 loc) · 871 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
FROM python:3.7-slim
ENV PYTHONUNBUFFERED 1
# based on https://www.caktusgroup.com/blog/2017/03/14/production-ready-dockerfile-your-python-django-app/
RUN mkdir /code/
WORKDIR /code/
EXPOSE 8000
RUN BUILD_DEPS=" \
build-essential \
libpcre3-dev \
libpq-dev \
gdal-bin \
wget \
git \
libsqlite3-dev \
zlib1g-dev \
" \
&& apt-get update && apt-get install -y --no-install-recommends $BUILD_DEPS
RUN git clone https://github.com/mapbox/tippecanoe.git && cd tippecanoe && make -j && make install
ADD . /code/
RUN wget https://deb.nodesource.com/setup_10.x -O nodesource.sh \
&& bash nodesource.sh \
&& apt install -y nodejs \
&& npm ci
# && npm run build
RUN set -ex \
&& python3.7 -m venv /venv \
&& /venv/bin/pip install -U pip poetry \
&& /venv/bin/poetry install