forked from data-for-change/anyway-etl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
20 lines (20 loc) · 790 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Pulled August 8, 2021
FROM python:3.8@sha256:caa7d8d6bfaa181f30c5a5074b81b6963246615f0140dca1d86e1e98efa99dc6
RUN pip install --upgrade pip
RUN curl -Lo /usr/local/bin/kubectl "https://dl.k8s.io/release/v1.16.7/bin/linux/amd64/kubectl" &&\
chmod +x /usr/local/bin/kubectl
WORKDIR /srv
COPY requirements.txt ./
RUN pip install -r requirements.txt
ARG ANYWAY_COMMIT=dev
RUN pip install -e git+https://github.com/hasadna/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"]