Commit 27368c6d by zhengtianbao

change port

parent 776d3b6b
Pipeline #11 passed with stage
in 16 seconds
......@@ -13,8 +13,8 @@ docker-deploy:
- docker build -t testweb .
# 删除已经在运行的容器
- if [ $(docker ps -aq --filter name=testweb ) ]; then docker rm -f testweb; fi
# 通过镜像启动容器,并把本机8000端口映射到容器8000端口
- docker run -d -p 5000:5000 --name testweb testweb
# 通过镜像启动容器,并把本机8000端口映射到容器80端口
- docker run -d -p 8000:80 --name testweb testweb
tags:
# 执行Job的服务器
- test
......
......@@ -2,5 +2,4 @@ FROM tiangolo/uwsgi-nginx-flask:python3.7
COPY ./app /app
EXPOSE 5000
......@@ -7,4 +7,4 @@ def hello():
if __name__ == "__main__":
# Only for debugging while developing
app.run(host='0.0.0.0', debug=True, port=5000)
app.run(host='0.0.0.0', debug=True, port=80)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment