1. 更改Dockerfile

This commit is contained in:
haoqi
2022-09-15 15:06:19 +08:00
parent 0c14c641d0
commit 792f8d939d
13 changed files with 41 additions and 15 deletions

View File

@@ -1,6 +1,14 @@
FROM docker.io/library/nginx:1.23.1
LABEL org.opencontainers.image.authors="haoqi123"
WORKDIR /pub
EXPOSE 80
COPY ./conf/*.conf /etc/nginx/conf.d/default.conf
COPY ./pub /pub
# HEALTHCHECK --interval=30s --timeout=30s CMD curl -f http://localhost/ks-km/api/v3/open/health || exit 1
ENV HTML_FILE=./pub
ENV NGINX_CONF=./conf/*.conf
COPY ${NGINX_CONF} /etc/nginx/conf.d/default.conf
COPY ${HTML_FILE} /pub
HEALTHCHECK --interval=60s --timeout=60s CMD curl -f http://localhost/ks-km/api/v3/open/health || exit 1