-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
41 lines (32 loc) · 881 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
38
39
40
41
FROM python:3.6-alpine
WORKDIR /app
RUN apk add --update --no-cache \
nodejs \
postgresql-dev \
libpq \
libffi \
libffi-dev \
libxml2-dev \
libxslt-dev \
python3-dev \
libstdc++ \
redis \
&& apk --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --update add \
leveldb \
leveldb-dev
ADD requirements.txt .
RUN apk add --update --no-cache --virtual .build-deps \
build-base \
ca-certificates \
g++ \
nodejs-npm \
&& update-ca-certificates \
&& pip3 install -r requirements.txt \
&& npm install -g [email protected] \
&& apk del --no-cache .build-deps
# ADD repos/datapackage-pipelines-fiscal ./datapackage-pipelines-fiscal
# RUN pip install -e ./datapackage-pipelines-fiscal
ADD initialize.sh initialize.sh
ENV PATH "$PATH:/app/node_modules/.bin"
EXPOSE 5000
CMD /app/initialize.sh