Update Dockerfile and nginx.conf
This commit updates the Dockerfile to expose port 17000 instead of 8000 and updates the nginx.conf file to listen on port 80 instead of 8080.
This commit is contained in:
parent
69235b374d
commit
3744fef2ca
@ -9,5 +9,5 @@ RUN npm run build
|
|||||||
FROM nginx:stable-alpine as production-stage
|
FROM nginx:stable-alpine as production-stage
|
||||||
COPY --from=build-stage /app/dist /usr/share/nginx/html
|
COPY --from=build-stage /app/dist /usr/share/nginx/html
|
||||||
COPY --from=build-stage /app/nginx.conf /etc/nginx/nginx.conf
|
COPY --from=build-stage /app/nginx.conf /etc/nginx/nginx.conf
|
||||||
EXPOSE 8000
|
EXPOSE 17000
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
|
@ -30,8 +30,8 @@ http {
|
|||||||
|
|
||||||
#include /etc/nginx/conf.d/*.conf;
|
#include /etc/nginx/conf.d/*.conf;
|
||||||
server {
|
server {
|
||||||
listen 8080;
|
listen 80;
|
||||||
listen [::]:8080;
|
listen [::]:80;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
|
|
||||||
#access_log /var/log/nginx/host.access.log main;
|
#access_log /var/log/nginx/host.access.log main;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user