-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
23 lines (23 loc) · 894 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
# Pulled August 8, 2021
FROM python:3.8@sha256:caa7d8d6bfaa181f30c5a5074b81b6963246615f0140dca1d86e1e98efa99dc6
RUN wget https://download.docker.com/linux/static/stable/x86_64/docker-25.0.1.tgz &&\
tar xzf docker-25.0.1.tgz &&\
mv docker/docker /usr/local/bin/ &&\
rm -rf docker docker-25.0.1.tgz
RUN pip install --upgrade pip
WORKDIR /srv
COPY requirements.txt ./
RUN pip install -r requirements.txt
RUN pip install setuptools==70.3.0
ARG ANYWAY_COMMIT=dev
RUN pip install -e git+https://github.com/data-for-change/anyway@${ANYWAY_COMMIT}#egg=anyway
COPY static_data ./static_data
COPY setup.py ./setup.py
COPY anyway_etl ./anyway_etl
RUN pip install -e .
ENV PYTHONUNBUFFERED=1
ENV ANYWAY_ETL_DATA_ROOT_PATH=/var/anyway-etl-data
ENV ANYWAY_ETL_STATIC_DATA_ROOT_PATH=/srv/static_data
ENV SQLALCHEMY_URL=postgresql://anyway:anyway@db/anyway
ENTRYPOINT ["anyway-etl"]
CMD ["--help"]