19 lines
405 B
Docker
19 lines
405 B
Docker
FROM python:alpine
|
|
|
|
# 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
|
|
|
|
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" ] |