调整yml
This commit is contained in:
parent
58effcea46
commit
c0de98238c
@ -45,7 +45,6 @@ pvedeploy:
|
||||
- docker login --username=${DOCKER_USERNAME} --password=${DOCKER_PASSWORD} ${DOCKER_REGION}
|
||||
- docker pull ${IMAGE_NAME}
|
||||
- docker run -t -d --name ${APP_NAME} -p 8080:80 ${IMAGE_NAME}
|
||||
- gunicorn api:app -c gunicorn.conf.py
|
||||
cache:
|
||||
policy: pull
|
||||
|
||||
@ -72,7 +71,6 @@ ali2deploy:
|
||||
- docker login --username=${DOCKER_USERNAME} --password=${DOCKER_PASSWORD} ${DOCKER_REGION}
|
||||
- docker pull ${IMAGE_NAME}
|
||||
- docker run -t -d --name ${APP_NAME} -p 127.0.0.1:5012:80 ${IMAGE_NAME}
|
||||
- gunicorn api:app -c gunicorn.conf.py
|
||||
cache:
|
||||
policy: pull
|
||||
when: manual
|
||||
|
@ -2,5 +2,5 @@ FROM python:3.7-alpine
|
||||
COPY requirements.txt /app/requirements.txt
|
||||
WORKDIR /app
|
||||
RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
COPY . /app
|
||||
CMD ["python"]
|
||||
COPY . .
|
||||
CMD sh go.sh && python
|
Loading…
x
Reference in New Issue
Block a user