legacy/pairent_backend/Dockerfile

19 lines
405 B
Docker
Raw Permalink Normal View History

2023-05-16 22:20:28 +02:00
FROM python:alpine
2023-05-16 23:42:00 +02:00
# mysql mariadb-connector-c-dev
RUN apk add --no-cache postgresql-libs && \
apk add --no-cache --virtual .build-deps gcc musl-dev postgresql-dev && \
mkdir /opt/code && \
apk --purge del .build-deps
2023-05-16 22:20:28 +02:00
COPY requirements.txt /opt/code/requirements.txt
WORKDIR /opt/code
RUN pip install -r requirements.txt
USER nobody
COPY . /opt/code
CMD [ "/bin/sh", "docker-entry.sh" ]