From 4269494e0ad69243bd0890149283c2b9ea5deb09 Mon Sep 17 00:00:00 2001 From: Mihir Motiyani Date: Sat, 30 Aug 2025 14:39:59 +0530 Subject: [PATCH] Updated dockerfile --- Dockerfile | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3e37503f..03c32881 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,8 @@ # Use lightweight Nginx image -FROM nginx:alpine - -# Remove default nginx static files -RUN rm -rf /usr/share/nginx/html/* +FROM scratch # Copy your HTML/CSS/JS files into nginx's web root -COPY . /usr/share/nginx/html - -# Create /app/build and link/copy files for pipeline compatibility -RUN mkdir -p /app && ln -s /usr/share/nginx/html /app/build - -# Expose port 80 for the web server -EXPOSE 80 +COPY . /app/build # Start nginx -CMD ["nginx", "-g", "daemon off;"] +CMD ["tail", "-f", "/dev/null"]