-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (28 loc) · 1.39 KB
/
Dockerfile
File metadata and controls
32 lines (28 loc) · 1.39 KB
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
FROM python:3.7-alpine
ENV PYTHONUNBUFFERED 1
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" > /etc/apk/repositories
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories
RUN apk update
RUN apk add --update curl curl-dev # Curl
RUN apk --no-cache add openssl openssl-dev git
RUN apk --no-cache add gdal
RUN apk --no-cache add gdal-dev
RUN apk --no-cache add py3-gdal geos-dev geoip-dev
RUN apk --no-cache add postgresql-dev
RUN apk --no-cache add linux-headers # psutil
RUN apk --no-cache add bash # bash
RUN apk --no-cache add libevent-dev # Gevent
RUN apk --no-cache add libjpeg-turbo-dev zlib-dev libffi-dev build-base jpeg-dev freetype-dev # Pillow
#RUN apk --no-cache add git # Git
RUN apk --no-cache add nano htop postgresql-client # Debugging
RUN apk --no-cache add libxslt-dev libxml2-dev # lxml
ENV LIBRARY_PATH /lib:/usr/lib:$LIBRARY_PATH # Pillow
ADD requirements.txt .
RUN pip install --upgrade pip
RUN pip install -r requirements.txt # Install dependencies that take a long time
RUN pip install Pandas==0.25.0
RUN rm requirements.txt
# STATIC REQUIREMENTS
RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/v3.10/main/ nodejs=10.19.0-r0
RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/v3.10/main/ nodejs-npm=10.19.0-r0