ShawnAI commited on
Commit
356ad86
·
verified ·
1 Parent(s): 80119b9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -5,16 +5,16 @@ RUN git clone -b Rel-17 https://github.com/jdegre/5GC_APIs Rel-17
5
  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
  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
13
  COPY --from=build-stage /app/Rel-15 /etc/nginx/html/Rel-15
14
  RUN ls /etc/nginx/html
15
- COPY conf/nginx.conf /etc/nginx/nginx.conf
16
- RUN chmod -R 0755 /var/cache/nginx
17
 
18
 
19
- EXPOSE 8888
20
  CMD ["nginx", "-g", "daemon off;"]
 
5
  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 nginxinc/nginx-unprivileged 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
13
  COPY --from=build-stage /app/Rel-15 /etc/nginx/html/Rel-15
14
  RUN ls /etc/nginx/html
15
+ # COPY conf/nginx.conf /etc/nginx/nginx.conf
16
+ # RUN chmod -R 0755 /var/cache/nginx
17
 
18
 
19
+ EXPOSE 8080
20
  CMD ["nginx", "-g", "daemon off;"]