mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-03 02:52:08 +08:00
1. 更改Dockerfile
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user