1 Star 23 Fork 21

那些年踩过的坑 / flask-restful-example

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 894 Bytes
一键复制 编辑 原始数据 按行查看 历史
那些年踩过的坑 提交于 2023-07-08 15:11 . 修复gunicorn问题
FROM python:3.7-alpine
MAINTAINER QZQ
RUN echo http://mirrors.aliyun.com/alpine/v3.18/main > /etc/apk/repositories
RUN echo http://mirrors.aliyun.com/alpine/v3.18/community >> /etc/apk/repositories
RUN apk update
RUN apk --update add --no-cache gcc
RUN apk --update add --no-cache g++
RUN apk --update add --no-cache tzdata
RUN apk --update add --no-cache libffi-dev
RUN apk --update add --no-cache libxslt-dev
RUN apk --update add --no-cache jpeg-dev
ENV TIME_ZONE Asia/Shanghai
ENV PIPURL "https://pypi.tuna.tsinghua.edu.cn/simple"
RUN echo "${TIME_ZONE}" > /etc/timezone
RUN ln -sf /usr/share/zoneinfo/${TIME_ZONE} /etc/localtime
WORKDIR /logs
WORKDIR /projects
COPY . .
RUN pip --no-cache-dir install -i ${PIPURL} --upgrade pip
RUN pip --no-cache-dir install -i ${PIPURL} -r requirements.txt
RUN pip --no-cache-dir install -i ${PIPURL} gunicorn
RUN chmod +x run.sh
CMD ./run.sh
1
https://gitee.com/NaXieNianCaiGuoDeKang/flask-restful-example.git
git@gitee.com:NaXieNianCaiGuoDeKang/flask-restful-example.git
NaXieNianCaiGuoDeKang
flask-restful-example
flask-restful-example
master

搜索帮助