* Connector health: source hubspot, gitlab, snapchat-marketing: fix builds * #2277 source google data analytics: limit page size of custom reports streams * upd changelog * limit page size only for check command
33 lines
940 B
Docker
33 lines
940 B
Docker
FROM python:3.9.11-slim as base
|
|
|
|
# build and load all requirements
|
|
FROM base as builder
|
|
WORKDIR /airbyte/integration_code
|
|
|
|
# upgrade pip to the latest version
|
|
RUN apt update -y && apt upgrade -y
|
|
|
|
COPY setup.py ./
|
|
# install necessary packages to a temporary folder
|
|
RUN pip install --prefix=/install .
|
|
|
|
# build a clean environment
|
|
FROM base
|
|
WORKDIR /airbyte/integration_code
|
|
|
|
# copy all loaded and built libraries to a pure basic image
|
|
COPY --from=builder /install /usr/local
|
|
# add default timezone settings
|
|
COPY --from=builder /usr/share/zoneinfo/Etc/UTC /etc/localtime
|
|
RUN echo "Etc/UTC" > /etc/timezone
|
|
|
|
# copy payload code only
|
|
COPY main.py ./
|
|
COPY source_google_analytics_data_api ./source_google_analytics_data_api
|
|
|
|
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
|
|
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]
|
|
|
|
LABEL io.airbyte.version=1.1.2
|
|
LABEL io.airbyte.name=airbyte/source-google-analytics-data-api
|