183 Star 1.7K Fork 923

Pear Admin / Pear Admin Flask

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 610 Bytes
一键复制 编辑 原始数据 按行查看 历史
六翼羊王 提交于 2023-05-29 07:48 . 修改docker-compose文件路径
FROM pearadminflask/python3.7-flask:pillow
COPY . /app/
COPY dockerdata/start.sh /app/
COPY dockerdata/gunicorn.conf.py /app/
WORKDIR /app/
ENV TIME_ZONE Asia/Shanghai
ENV PIPURL "https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.douban.com"
RUN echo "${TIME_ZONE}" > /etc/timezone \
&& ln -sf /usr/share/zoneinfo/${TIME_ZONE} /etc/localtime
RUN apk update && apk add mysql-client
RUN chmod +x start.sh
RUN sed -i 's/MYSQL_HOST = "127.0.0.1"/MYSQL_HOST = "mysql"/' applications/config.py
RUN sed -i 's/REDIS_HOST = "127.0.0.1"/REDIS_HOST = "redis"/' applications/config.py
CMD /bin/sh
Python
1
https://gitee.com/pear-admin/pear-admin-flask.git
git@gitee.com:pear-admin/pear-admin-flask.git
pear-admin
pear-admin-flask
Pear Admin Flask
master

搜索帮助