-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathDockerfile
30 lines (23 loc) · 1.06 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM python:3.8-slim AS build
RUN apt-get update && apt-get install -y --no-install-recommends build-essential libffi-dev
RUN pip install --upgrade pip
COPY src/requirements.txt .
RUN pip install -r ./requirements.txt
FROM python:3.8-slim
ARG RELEASE_TAG_ARG
ENV RELEASE_TAG=$RELEASE_TAG_ARG
LABEL name="dynatrace-gcp-monitor" \
vendor="Dynatrace LLC" \
maintainer="Dynatrace Open Source" \
version="1.x" \
release="1" \
url="https://github.com/dynatrace-oss/dynatrace-gcp-monitor/" \
summary="Dynatrace function for Google Cloud Platform monitoring. This project is maintained by Dynatrace as Open Source Project." \
description="Dynatrace function for Google Cloud Platform provides the mechanism to pull Google Cloud metrics and logs into Dynatrace."
WORKDIR /code
COPY --from=build /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/site-packages
COPY src/ .
COPY LICENSE.md /licenses/
RUN adduser --disabled-password gcp-monitor && chown -R gcp-monitor /code
USER gcp-monitor
CMD [ "python", "-u", "./run_docker.py" ]