1
0
personal-data/Dockerfile
Jon Michael Aanes b70a8b5d94
Some checks failed
Build container / Python-Test (push) Successful in 22s
Build container / Python-Package (push) Failing after 21s
Build container / Container-Package (push) Successful in 1m18s
Reorder setup
2024-05-23 00:03:42 +02:00

28 lines
547 B
Docker

# Dependencies
FROM python:alpine
RUN pip install -U \
pip \
setuptools \
wheel
RUN apk add gcc musl-dev
WORKDIR /personal_data
RUN adduser -S personal_data && chown personal_data /personal_data
#debian: RUN useradd -m -r personal_data && chown personal_data /personal_data
# Requirements
ADD setup.py setup.py
ADD README.md README.md
ADD personal_data personal_data
RUN pip install --no-cache-dir . --break-system-packages
USER personal_data
# Tracability
ARG GIT_HASH
ENV GIT_HASH=${GIT_HASH:-dev}
CMD python -m personal_data