系统相关
首页 > 系统相关> > docker打包nginx

docker打包nginx

作者:互联网

nginx镜像  localtime为/etc/localtime文件 给容器限定日志打印时间为北京时间

FROM nginx:stable-alpine
MAINTAINER geyanan geyanan@xianlai-inc.com
ADD code.tar.gz   /usr/share/nginx/html
ADD ./localtime /etc/
RUN echo 'Asia/Shanghai' >/etc/timezone
EXPOSE 8080
ENTRYPOINT ["nginx"]
CMD ["-g","daemon off;"]

 

标签:code,etc,geyanan,nginx,ADD,docker,打包,localtime
来源: https://www.cnblogs.com/fat-girl-spring/p/15756227.html