Updated dockerfile
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Mihir Motiyani 2025-08-30 14:39:59 +05:30
parent fd7c57e9ac
commit 4269494e0a
1 changed files with 3 additions and 12 deletions

View File

@ -1,17 +1,8 @@
# Use lightweight Nginx image # Use lightweight Nginx image
FROM nginx:alpine FROM scratch
# Remove default nginx static files
RUN rm -rf /usr/share/nginx/html/*
# Copy your HTML/CSS/JS files into nginx's web root # Copy your HTML/CSS/JS files into nginx's web root
COPY . /usr/share/nginx/html COPY . /app/build
# 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
# Start nginx # Start nginx
CMD ["nginx", "-g", "daemon off;"] CMD ["tail", "-f", "/dev/null"]