From baf66dbea8536ca5ef4efbd09f14e454e7fd47bd Mon Sep 17 00:00:00 2001 From: huanghs Date: Sat, 17 Aug 2024 17:17:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20docker/Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 docker/Dockerfile diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..08d8c57 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,14 @@ +FROM nginx:1.25-alpine-slim + +RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories \ + && apk add --no-cache tzdata \ + && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ + && apk del tzdata \ + && echo "*/30 * * * * ntpd -d -q -n -p ntp.aliyun.com" >> /etc/crontabs/root + +ENV LISTEN_PORT=80\ + SERVER_NAME=localhost\ + PROXY_PASS=http://127.0.0.1 + +COPY ./dist /html +RUN chmod -R 755 /html