legacy/pairent_backend/Dockerfile

17 lines
304 B
Docker
Raw Normal View History

2023-05-16 22:20:28 +02:00
FROM python:alpine
RUN apk add --no-cache \
gcc musl-dev \
mysql mariadb-connector-c-dev && \
mkdir /opt/code
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" ]