ShawnAI commited on
Commit
f749e35
·
1 Parent(s): 19624c1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -1,7 +1,11 @@
1
- # production stage
 
 
 
 
2
  FROM nginx:latest as production-stage
3
- RUN git clone -b Rel-18 https://github.com/jdegre/5GC_APIs /etc/nginx/html/Rel-18
4
  COPY dist /etc/nginx/html
 
5
  COPY conf/nginx.conf /etc/nginx/nginx.conf
6
  RUN chmod -R 777 /var/cache/nginx
7
 
 
1
+ FROM ubuntu:latest as build-stage
2
+ WORKDIR /app
3
+ RUN git clone -b Rel-18 https://github.com/jdegre/5GC_APIs rel-18
4
+ RUN git clone -b Rel-17 https://github.com/jdegre/5GC_APIs rel-17
5
+
6
  FROM nginx:latest as production-stage
 
7
  COPY dist /etc/nginx/html
8
+ COPY --from=build-stage /app/rel-18 /etc/nginx/html/rel-18
9
  COPY conf/nginx.conf /etc/nginx/nginx.conf
10
  RUN chmod -R 777 /var/cache/nginx
11