update docker file

This commit is contained in:
2026-07-13 18:00:03 +05:30
parent 28bc36f983
commit d61aeac2bf
732 changed files with 29 additions and 92352 deletions

View File

@@ -1,18 +1,15 @@
FROM nginx:alpine
# Move to Nginx's public folder
WORKDIR /usr/share/nginx/html
# 1. CRUCIAL: Remove Nginx's default "Welcome" page files completely
RUN rm -rf ./*
# 2. Copy your compiled static assets into the root folder.
# NOTE: If your folder is named "dist" instead of "build", change "build/" to "dist/"
COPY build/ .
# 3. Copy your custom Nginx configuration (which you already have in your log)
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
FROM node:18-alpine
WORKDIR /app
# Next.js standalone config and environment
ENV NODE_ENV production
ENV PORT 80
ENV HOSTNAME "0.0.0.0"
# Copy the pre-built standalone app from the build context
COPY build /app
EXPOSE 80
CMD ["node", "server.js"]