1
0
personal-data/Dockerfile

28 lines
540 B
Docker
Raw Normal View History

2024-04-17 21:29:37 +00:00
# Dependencies
FROM python:alpine
RUN pip install -U \
pip \
setuptools \
wheel
2024-04-17 21:45:37 +00:00
RUN apk add gcc musl-dev
2024-04-17 21:29:37 +00:00
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