1
0
mirror of synced 2026-01-09 15:05:02 -05:00
Files
airbyte/airbyte-integrations/connectors/source-google-analytics-data-api/Dockerfile
Roman Yermilov [GL] e40ee3fd50 🎉Source Google Analytics Data Api: code refactoring (#15229)
* Source: google analytics data api refactoring

* google-analytics-data-api.md

Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>

* updated spec: added custom reports field

* doclint

Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>

* auto-bump connector version [ci skip]

Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
Co-authored-by: Sergey Chvalyuk <grubberr@gmail.com>
Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-08-17 16:49:41 +04:00

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=0.0.3
LABEL io.airbyte.name=airbyte/source-google-analytics-data-api