提交 23765102 编写于 作者: C Chong Jiang 提交者: GitHub

Fix nginx error

上级 5fe25840
......@@ -3,15 +3,17 @@ FROM alpine:latest
MAINTAINER Golfen Guo <golfen.guo@daocloud.io>
# Install Nginx
# Install and configure Nginx
RUN apk --update add nginx
RUN sed -i "s#root html;#root /usr/share/nginx/html;#g" /etc/nginx/nginx.conf
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log
# Add 2048 stuff into Nginx server
COPY . /usr/share/nginx/html
EXPOSE 80
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log
# Start Nginx and keep it from running background
CMD ["nginx", "-g", "daemon off;"]
CMD ["nginx", "-g", "pid /tmp/nginx.pid; daemon off;"]
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册