fix: Dockerfile引用了不存在的文件
All checks were successful
continuous-integration/drone/tag Build is passing
All checks were successful
continuous-integration/drone/tag Build is passing
This commit is contained in:
@@ -16,8 +16,8 @@ ENV TZ=Asia/Shanghai \
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY requirements.txt .
|
# COPY requirements.txt .
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
# RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
COPY app.py .
|
COPY app.py .
|
||||||
|
|
||||||
@@ -25,6 +25,6 @@ EXPOSE 80
|
|||||||
|
|
||||||
# 添加健康检查(v2.0+ 特性)
|
# 添加健康检查(v2.0+ 特性)
|
||||||
HEALTHCHECK --interval=10s --timeout=3s --start-period=5s --retries=3 \
|
HEALTHCHECK --interval=10s --timeout=3s --start-period=5s --retries=3 \
|
||||||
CMD wget --no-verbose --tries=1 --spider http://localhost/health || exit 1
|
CMD wget --no-verbose --tries=1 --spider http://localhost/health || exit 1
|
||||||
|
|
||||||
CMD ["python", "app.py"]
|
CMD ["python", "app.py"]
|
||||||
|
|||||||
Reference in New Issue
Block a user