ShawnAI commited on
Commit
35211ba
·
1 Parent(s): 3c9610a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -6,8 +6,7 @@ RUN git clone -b Rel-17 https://github.com/jdegre/5GC_APIs Rel-16
6
  RUN git clone -b Rel-17 https://github.com/jdegre/5GC_APIs Rel-15
7
 
8
  FROM nginx:latest as production-stage
9
- RUN rm -rf /etc/nginx/html
10
- COPY dist/index.html /etc/nginx/html/index.html
11
  COPY --from=build-stage /app/Rel-18 /etc/nginx/html/Rel-18
12
  COPY --from=build-stage /app/Rel-17 /etc/nginx/html/Rel-17
13
  COPY --from=build-stage /app/Rel-16 /etc/nginx/html/Rel-16
@@ -15,7 +14,7 @@ COPY --from=build-stage /app/Rel-15 /etc/nginx/html/Rel-15
15
  RUN ls /etc/nginx/html
16
  COPY conf/nginx.conf /etc/nginx/nginx.conf
17
  RUN chmod -R 777 /var/cache/nginx
18
- RUN nginx -V
19
 
20
 
21
  EXPOSE 8888
 
6
  RUN git clone -b Rel-17 https://github.com/jdegre/5GC_APIs Rel-15
7
 
8
  FROM nginx:latest as production-stage
9
+ COPY dist /etc/nginx/html
 
10
  COPY --from=build-stage /app/Rel-18 /etc/nginx/html/Rel-18
11
  COPY --from=build-stage /app/Rel-17 /etc/nginx/html/Rel-17
12
  COPY --from=build-stage /app/Rel-16 /etc/nginx/html/Rel-16
 
14
  RUN ls /etc/nginx/html
15
  COPY conf/nginx.conf /etc/nginx/nginx.conf
16
  RUN chmod -R 777 /var/cache/nginx
17
+ RUN nginx -t
18
 
19
 
20
  EXPOSE 8888