MrDoc/Dockerfile

22 lines
829 B
Docker
Raw Normal View History

FROM python:3.7-alpine
LABEL maintainer="www.mrdoc.fun"
ENV PYTHONUNBUFFERED=0 \
TZ=Asia/Shanghai \
LISTEN_PORT=10086\
USER=admin
COPY . /app/MrDoc/
WORKDIR /app/MrDoc
RUN set -x \
2021-03-01 15:00:03 +08:00
&& apk add wqy-zenhei --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted \
&& apk add --no-cache --virtual .build-deps build-base g++ gcc libxslt-dev python2-dev linux-headers \
&& apk add --no-cache pwgen git tzdata zlib-dev freetype-dev jpeg-dev mariadb-dev postgresql-dev \
2021-03-01 15:04:41 +08:00
&& python -m pip install --upgrade pip \
&& pip --no-cache-dir install -r requirements.txt \
&& pip --no-cache-dir install mysqlclient \
2021-02-24 09:50:25 +08:00
&& chmod +x docker_mrdoc.sh \
&& apk del .build-deps \
2021-02-22 18:46:53 +08:00
&& rm -rf /var/cache/apk/*
2021-02-23 22:38:20 +08:00
ENTRYPOINT ["./docker_mrdoc.sh"]