bigquery-etl/Dockerfile

19 строки
659 B
Docker
Исходник Обычный вид История

ARG PYTHON_VERSION=3.7
# build typed-ast in separate stage because it requires gcc and libc-dev
2019-08-06 20:44:49 +03:00
FROM python:${PYTHON_VERSION}-slim
COPY requirements.txt constraints.txt ./
2019-08-06 20:44:49 +03:00
RUN apt-get update -qqy && apt-get install -qqy gcc libc-dev && \
pip install -r requirements.txt
2019-08-06 20:44:49 +03:00
FROM python:${PYTHON_VERSION}-slim
# add bash for entrypoing and python2 for google-cloud-sdk
2019-08-06 20:44:49 +03:00
RUN apt-get update -qqy && apt-get install -qqy bash python
COPY --from=google/cloud-sdk:alpine /google-cloud-sdk /google-cloud-sdk
ENV PATH /google-cloud-sdk/bin:$PATH
COPY --from=0 /usr/local /usr/local
WORKDIR /app
COPY .bigqueryrc /root/
COPY . .
ENTRYPOINT ["/app/script/entrypoint"]