2024-04-17 21:29:37 +00:00
|
|
|
# Dependencies
|
|
|
|
FROM python:alpine
|
|
|
|
RUN pip install -U \
|
|
|
|
pip \
|
|
|
|
setuptools \
|
|
|
|
wheel
|
2024-06-02 17:24:23 +00:00
|
|
|
RUN apk add gcc musl-dev git
|
2024-04-17 21:29:37 +00:00
|
|
|
|
|
|
|
WORKDIR /personal_data
|
|
|
|
|
|
|
|
RUN adduser -S personal_data && chown personal_data /personal_data
|
|
|
|
|
|
|
|
# Requirements
|
2024-05-22 22:03:42 +00:00
|
|
|
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
|
2024-04-17 21:29:37 +00:00
|
|
|
|
|
|
|
# Tracability
|
|
|
|
ARG GIT_HASH
|
|
|
|
ENV GIT_HASH=${GIT_HASH:-dev}
|
|
|
|
|
|
|
|
CMD python -m personal_data
|