27 lines
472 B
Docker
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
|