add Dockerfile
This commit is contained in:
parent
1156ef497b
commit
dd3334fd0f
|
|
@ -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
|
||||
Loading…
Reference in New Issue