代码拉取完成,页面将自动刷新
同步操作将从 staugur/sapic 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# -- base python --
FROM python:3.7-alpine AS base
LABEL maintainer=staugur@saintic.com
WORKDIR /picbed
# -- build dependencies with alpine --
#FROM python:3.7-alpine AS build
#ARG ALPINEMIRROR=mirrors.tuna.tsinghua.edu.cn
#ARG PIPMIRROR=https://pypi.tuna.tsinghua.edu.cn/simple
#RUN sed -i "s/dl-cdn.alpinelinux.org/$ALPINEMIRROR/g" /etc/apk/repositories && \
# apk add --no-cache gcc musl-dev libffi-dev make && \
# rm -fr /var/cache/apk/*
#COPY requirements /requirements
#RUN pip install --timeout 30 --index $PIPMIRROR --user --no-cache-dir --no-warn-script-location -r /requirements/all.txt
# -- build dependencies with debian --
FROM python:3.7-slim AS build
ARG PIPMIRROR=https://pypi.tuna.tsinghua.edu.cn/simple
COPY requirements /requirements
RUN pip install --timeout 30 --index $PIPMIRROR --user --no-cache-dir --no-warn-script-location -r /requirements/all.txt
# -- app environment --
FROM base
ENV LOCAL_PKG="/root/.local"
ENV picbed_isrun=true
COPY --from=build ${LOCAL_PKG} ${LOCAL_PKG}
RUN ln -sf ${LOCAL_PKG}/bin/flask ${LOCAL_PKG}/bin/gunicorn /bin/ && \
ln -sf $(which python) /python && \
sed -i "s#$(which python)#/python#" /bin/gunicorn
COPY src /picbed
ENTRYPOINT ["gunicorn", "app:app", "-c", "picbed.py"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。