7 Star 36 Fork 10

scu-zrb/djmockserver

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 999 Bytes
一键复制 编辑 原始数据 按行查看 历史
# Dockerfile
# step1 docker build -t mockserver .
# step2 docker run -d --name=ms1 --restart=always -p 9000:80 mockserver
FROM scuzrb/py3_dev:v1.0
MAINTAINER zrb
WORKDIR /home/app
# 1. git update code
RUN ["git", "clone", "https://gitee.com/scu-zrb/djmockserver.git"]
# 2. copy all json file to container mockdata dir if you have mockdata
# COPY ["mockdata/*.json", "/home/app/djmockserver/djmockserver/mockdata/"]
# 3. copy extend function file to container
# COPY ["extend_functions.py", "/home/app/djmockserver/djmockserver/mock/extend_func/"]
# 4. copy settings file
# COPY ["settings.py", "/home/app/djmockserver/djmockserverproject/settings.py"]
# 5. WORKDIR
WORKDIR /home/app/djmockserver
# 6. extend requirements.txt
# COPY ["extend_req.txt", "extend_req.txt"]
# 7. pip3
RUN pip3 install -r requirements.txt
# RUN pip3 install -r extend_req.txt
# 8. copy uwsgi.ini if override
# COPY ["uwsgi.ini", "uwsgi.ini"]
# 9. EXPOSE
EXPOSE 80
# run
CMD ["uwsgi", "--ini", "uwsgi.ini"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/scu-zrb/djmockserver.git
git@gitee.com:scu-zrb/djmockserver.git
scu-zrb
djmockserver
djmockserver
master

搜索帮助