Skip to content

Commit b45f40c

Browse files
committed
Made changes in Dockerfile and nginx.conf
1 parent 6a72a56 commit b45f40c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.nginx/nginx.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ http {
88
root /usr/share/nginx/html;
99
include /etc/nginx/mime.types;
1010

11-
location /appui {
11+
location / {
1212
try_files $uri /index.html;
1313
}
1414
}

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ COPY . .
1515
RUN npm run build
1616

1717

18-
FROM nginx:alpine
18+
FROM nginx:1.20-alpine
1919

2020
#!/bin/sh
2121

@@ -24,7 +24,7 @@ COPY ./.nginx/nginx.conf /etc/nginx/nginx.conf
2424
## Remove default nginx index page
2525
RUN rm -rf /usr/share/nginx/html/*
2626

27-
# Copy from the stahg 1
27+
# Copy from the stage 1
2828
COPY --from=builder /react-ui/build /usr/share/nginx/html
2929

30-
EXPOSE 3000 80
30+
EXPOSE 443 80

0 commit comments

Comments
 (0)