forked from frictionlessdata/datapackage-pipelines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (16 loc) · 811 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:3.7-alpine
RUN apk --update --no-cache --virtual=build-dependencies add \
build-base python3-dev \libxml2-dev libxslt-dev postgresql-dev && \
apk --update --no-cache add libstdc++ redis libpq && \
mkdir -p /run/redis && mkdir -p /var/run/dpp && \
apk --repository http://dl-3.alpinelinux.org/alpine/edge/community/ --update add leveldb leveldb-dev && \
pip install psycopg2 datapackage-pipelines-github datapackage-pipelines-sourcespec-registry datapackage-pipelines-aws
ADD . /dpp/
RUN pip install -U /dpp/[speedup] && \
mkdir -p /var/redis && chmod 775 /var/redis && chown redis.redis /var/redis
ENV DPP_NUM_WORKERS=4
ENV DPP_REDIS_HOST=127.0.0.1
ENV DPP_CELERY_BROKER=redis://localhost:6379/6
EXPOSE 5000
WORKDIR /pipelines/
ENTRYPOINT ["/dpp/docker/run.sh"]