1
0
personal-data/Dockerfile
Jon Michael Aanes 738fc584d7
Some checks failed
Build container / Package-Python (push) Failing after 24s
Build container / Package-Container (push) Failing after 32s
Dockerfile v2
2024-04-17 23:32:33 +02:00

27 lines
515 B
Docker

# Dependencies
FROM python:alpine
RUN pip install -U \
pip \
setuptools \
wheel
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 requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Tracability
ARG GIT_HASH
ENV GIT_HASH=${GIT_HASH:-dev}
# Code
ADD personal_data personal_data
USER personal_data
CMD python -m personal_data