27 lines
512 B
Docker
27 lines
512 B
Docker
|
FROM nginx:1.17.9-alpine
|
||
|
|
||
|
LABEL maintainer="clibing <wmsjhappy@gmail.com>"
|
||
|
|
||
|
ARG TZ='Asia/Shanghai'
|
||
|
|
||
|
ENV TZ ${TZ}
|
||
|
|
||
|
RUN apk upgrade --update \
|
||
|
&& apk add bash \
|
||
|
&& ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime \
|
||
|
&& echo ${TZ} > /etc/timezone \
|
||
|
&& rm -rf /usr/share/nginx/html /var/cache/apk/*
|
||
|
|
||
|
COPY nginx.vh.default.conf /etc/nginx/conf.d/default.conf
|
||
|
|
||
|
COPY dist /usr/share/nginx/html
|
||
|
|
||
|
RUN chown -R nginx /usr/share/nginx/html
|
||
|
|
||
|
EXPOSE 80
|
||
|
|
||
|
STOPSIGNAL SIGTERM
|
||
|
|
||
|
CMD ["nginx", "-g", "daemon off;"]
|
||
|
|