changing frontend docker image to unprevilege image
Signed-off-by: Raj Babu Das <raj.das@mayadata.io>
This commit is contained in:
parent
6eada59f67
commit
59f6fd69ab
|
|
@ -41,7 +41,7 @@ spec:
|
|||
ports:
|
||||
- name: http
|
||||
port: 9091
|
||||
targetPort: 80
|
||||
targetPort: 8080
|
||||
selector:
|
||||
component: litmusportal-frontend
|
||||
---
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ spec:
|
|||
ports:
|
||||
- name: http
|
||||
port: 9091
|
||||
targetPort: 80
|
||||
targetPort: 8080
|
||||
selector:
|
||||
component: litmusportal-frontend
|
||||
---
|
||||
|
|
|
|||
|
|
@ -23,9 +23,14 @@ COPY . ./
|
|||
RUN npm run build
|
||||
|
||||
# Stage 2: the production environment
|
||||
FROM nginx:alpine
|
||||
FROM nginxinc/nginx-unprivileged
|
||||
|
||||
# Add Maintainer Info
|
||||
LABEL maintainer="LitmusChaos"
|
||||
|
||||
RUN rm /etc/nginx/conf.d/default.conf
|
||||
COPY nginx/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=react-build /frontend/build /usr/share/nginx/html
|
||||
EXPOSE 80
|
||||
|
||||
EXPOSE 8080
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
server {
|
||||
listen 80;
|
||||
listen 8080;
|
||||
server_name localhost;
|
||||
#charset koi8-r;
|
||||
#access_log /var/log/nginx/host.access.log main;
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ spec:
|
|||
ports:
|
||||
- name: http
|
||||
port: 9091
|
||||
targetPort: 80
|
||||
targetPort: 8080
|
||||
selector:
|
||||
component: litmusportal-frontend
|
||||
---
|
||||
|
|
|
|||
Loading…
Reference in New Issue