1
0
personal-data/Dockerfile
Jon Michael Aanes f8e069bf31
Some checks failed
Test Python / Test (push) Has been cancelled
fin-depo public
2024-06-02 20:28:42 +02:00

27 lines
472 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
# 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