Use alpine nginx and fix issue with port
This commit is contained in:
parent
c52bbc4d69
commit
ea139719cd
@ -4,7 +4,6 @@
|
|||||||
.dockerignore
|
.dockerignore
|
||||||
.gitignore
|
.gitignore
|
||||||
.docusaurus
|
.docusaurus
|
||||||
build
|
|
||||||
README.md
|
README.md
|
||||||
Dockerfile
|
Dockerfile
|
||||||
kubernetes
|
kubernetes
|
||||||
|
|||||||
@ -13,7 +13,7 @@ COPY *.js ./
|
|||||||
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM nginxinc/nginx-unprivileged:1.20-alpine AS production
|
FROM nginx:stable-alpine AS production
|
||||||
|
|
||||||
COPY --from=build-stage /app/build /usr/share/nginx/html
|
COPY --from=build-stage /app/build /usr/share/nginx/html
|
||||||
EXPOSE 8080
|
EXPOSE 80
|
||||||
|
|||||||
@ -35,7 +35,7 @@ spec:
|
|||||||
cpu: 5m
|
cpu: 5m
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 8080
|
containerPort: 80
|
||||||
|
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
|
|||||||
@ -10,5 +10,4 @@ spec:
|
|||||||
app: dsm-client
|
app: dsm-client
|
||||||
ports:
|
ports:
|
||||||
- port: 80
|
- port: 80
|
||||||
targetPort: 8080
|
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user