1
0
personal-data/Dockerfile
Jon Michael Aanes 4127712bfc
Some checks failed
Test Python / Test (push) Failing after 19s
Git please v2
2024-06-02 19:24:23 +02:00

28 lines
551 B
Docker

# Dependencies
FROM python:alpine
RUN pip install -U \
pip \
setuptools \
wheel
RUN apk add gcc musl-dev git
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