Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
Dockerfile-loongarch64 860 Bytes
Copy Edit Raw Blame History
zhangwenlong01 authored 2022-02-11 18:23 . Add Dockerfile for loongarch64
FROM harbor.loongnix.cn/mirrorloongsoncontainers/python:3.8.12-alpine3.11
LABEL maintainer="www.mrdoc.fun"
ENV PYTHONUNBUFFERED=0 \
TZ=Asia/Shanghai \
LISTEN_PORT=10086\
USER=admin
COPY . /app/MrDoc/
WORKDIR /app/MrDoc
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
RUN set -x \
&& 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 libxml2-dev \
&& python -m pip install --upgrade pip \
&& pip --no-cache-dir install -r requirements.txt \
&& pip --no-cache-dir install mysqlclient uwsgi \
&& chmod +x docker_mrdoc.sh \
&& apk del .build-deps \
&& rm -rf /var/cache/apk/*
ENTRYPOINT ["./docker_mrdoc.sh"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化