12 Star 158 Fork 58

staugur / sapic

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 573 Bytes
一键复制 编辑 原始数据 按行查看 历史
staugur 提交于 2023-01-10 10:12 . Update peripheral & dockerfile(close #28)
# -- build and run with debian(multiarch) --
FROM python:3.9-slim
LABEL maintainer=me@tcw.im
ARG PIPMIRROR=https://pypi.org/simple
ENV sapic_isrun=true
COPY requirements /requirements
RUN pip install --timeout 30 --index $PIPMIRROR --user --no-cache-dir --no-warn-script-location -r /requirements/all.txt && \
ln -sf /root/.local/bin/flask /root/.local/bin/gunicorn /bin/ && \
ln -sf $(which python) /python && \
sed -i "s#$(which python)#/python#" /bin/gunicorn
WORKDIR /picbed
COPY src /picbed
EXPOSE 9514
ENTRYPOINT ["gunicorn", "app:app", "-c", "sapicd.py"]
Python
1
https://gitee.com/staugur/picbed.git
git@gitee.com:staugur/picbed.git
staugur
picbed
sapic
master

搜索帮助