diff --git a/Dockerfile b/Dockerfile index 8d601bd..cc31aca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,7 @@ RUN npm run build ### STAGE 2: Run ### FROM nginx:alpine +EXPOSE 8080 + COPY nginx.conf /etc/nginx/nginx.conf COPY --from=build /usr/src/app/dist/portfolioo/browser /usr/share/nginx/html -EXPOSE 8080 diff --git a/nginx.conf b/nginx.conf index 01840b7..d99dfe1 100644 --- a/nginx.conf +++ b/nginx.conf @@ -4,7 +4,7 @@ http { include /etc/nginx/mime.types; server { listen 8080; - server_name 0.0.0.0; + server_name localhost; root /usr/share/nginx/html; index index.html; location / {