From 50466457951b679a0c2be338edef4c11817e8b4b Mon Sep 17 00:00:00 2001 From: Irwan Cahyono Date: Fri, 8 Aug 2025 12:27:28 +0700 Subject: [PATCH] df conf --- Dockerfile | 8 ++++---- nginx.conf | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3732bd8..f671252 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,12 +11,12 @@ COPY . . RUN npm run build # Dockerfile untuk server Nuxt 3 -FROM nginx:alpine +FROM nginx:1.29-alpine -# Copy konfigurasi Nginx -COPY nginx.conf /etc/nginx/conf.d/default.conf +RUN rm -f /etc/nginx/conf.d/default.conf +# COPY nginx.conf /etc/nginx/conf.d/default.conf +COPY nginx.conf /etc/nginx/conf.d/ -# Copy hasil build COPY --from=builder /app/.output/public /usr/share/nginx/html EXPOSE 80 diff --git a/nginx.conf b/nginx.conf index bf0987a..bc0b1d8 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,6 +1,6 @@ server { listen 80; - server_name localhost; + server_name _; root /usr/share/nginx/html; index index.html;