From 3744fef2ca514b727c162d51e282d973a7b013b3 Mon Sep 17 00:00:00 2001 From: Dede Fuji Abdul Date: Sat, 13 Jan 2024 20:18:57 +0700 Subject: [PATCH] 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. --- Dockerfile | 2 +- nginx.conf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c5ca3f2..8f68255 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,5 +9,5 @@ RUN npm run build FROM nginx:stable-alpine as production-stage COPY --from=build-stage /app/dist /usr/share/nginx/html COPY --from=build-stage /app/nginx.conf /etc/nginx/nginx.conf -EXPOSE 8000 +EXPOSE 17000 CMD ["nginx", "-g", "daemon off;"] diff --git a/nginx.conf b/nginx.conf index fa50e49..7de4a0c 100644 --- a/nginx.conf +++ b/nginx.conf @@ -30,8 +30,8 @@ http { #include /etc/nginx/conf.d/*.conf; server { - listen 8080; - listen [::]:8080; + listen 80; + listen [::]:80; server_name localhost; #access_log /var/log/nginx/host.access.log main;