Commit 39328ab1 authored by 周远喜's avatar 周远喜

docker

parent 8e275b13
...@@ -3,5 +3,5 @@ WORKDIR /usr/share/nginx/html ...@@ -3,5 +3,5 @@ WORKDIR /usr/share/nginx/html
COPY dist/ . COPY dist/ .
COPY nginx.conf /etc/nginx/nginx.conf COPY nginx.conf /etc/nginx/nginx.conf
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
EXPOSE 3005 EXPOSE 3006
ENTRYPOINT ["nginx", "-g","daemon off;"] ENTRYPOINT ["nginx", "-g","daemon off;"]
...@@ -27,7 +27,7 @@ http { ...@@ -27,7 +27,7 @@ http {
include /etc/nginx/conf.d/*.conf; include /etc/nginx/conf.d/*.conf;
server { server {
listen 3005; listen 3006;
root /usr/share/nginx/html; root /usr/share/nginx/html;
location / { location / {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment