-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (16 loc) · 657 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.12.6-bullseye
ARG VCS_REF
ARG VERSION
ARG BUILD_DATE
ARG DEBIAN_FRONTEND=noninteractive
LABEL org.label-schema.schema-version="1.0" \
org.label-schema.vcs-url="https://github.com/ckleemann/docker-prospector" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.version=$VERSION \
org.label-schema.build-date=$BUILD_DATE
RUN groupadd prospector && useradd --no-log-init -r -g prospector prospector
RUN apt-get update && apt-get dist-upgrade -y
COPY requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir --compile -r /tmp/requirements.txt
USER prospector
ENTRYPOINT ["/usr/local/bin/prospector"]