forked from OpenTreeMap/otm-core
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
37 lines (29 loc) · 956 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
FROM python:3.8
#RUN apt-get install -y software-properties-common && add-apt-repository -y ppa:ubuntu-toolchain-r/test
#checkinstall \
#libgdal1-dev \
RUN apt-get update \
&& apt-get install -y \
gettext \
libgeos-dev \
libproj-dev \
build-essential \
python3-dev \
python3-pip \
libfreetype6-dev \
binutils \
libproj-dev \
gdal-bin \
curl
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && apt-get install -y nodejs
RUN npm install -g yarn
WORKDIR /usr/local/otm/app
# only copy what we need
COPY requirements.txt .
RUN pip install -r requirements.txt
# Bundle JS and CSS via webpack
RUN yarn --force
# then copy everything else
COPY . .
COPY docker/local_settings.py /usr/local/otm/app/opentreemap/opentreemap/settings/local_settings.py
RUN mkdir -p /usr/local/otm/static && mkdir -p /usr/local/otm/media && mkdir -p /usr/local/otm/emails