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