From a2de8581fd8c454df0d3de81bd5d256502767c88 Mon Sep 17 00:00:00 2001 From: "suguo.yao" Date: Mon, 7 Apr 2025 10:48:32 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..27d1c87c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM nginx:1.25.3-alpine + +LABEL "authors"="suguo.yao" +LABEL "email"="ysg@myschools.me" + +ENV TZ=Asia/Shanghai \ + LANG=C.UTF-8 \ + APP_DIR=/usr/share/nginx/html + +COPY dist-prod/. ${APP_DIR} + +WORKDIR ${APP_DIR} + +EXPOSE 80 + +RUN ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime \ + && echo ${TZ} > /etc/timezone \ No newline at end of file