1
0
personal-data/Dockerfile
Jon Michael Aanes b282ecaa41
Some checks failed
Test Python / Test (push) Has been cancelled
Git please
2024-06-02 19:24:13 +02:00

29 lines
557 B
Docker

# Dependencies
FROM python:alpine
RUN pip install -U \
git \
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