add Dockerfile

This commit is contained in:
xueyawen 2025-02-24 09:03:57 +00:00
parent 1156ef497b
commit dd3334fd0f
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