添加 Dockerfile

This commit is contained in:
suguo.yao 2025-04-07 10:48:32 +00:00
parent eb902d1170
commit a2de8581fd
1 changed files with 17 additions and 0 deletions

17
Dockerfile Normal file
View File

@ -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