docker set up

This commit is contained in:
ANUJ7MADKE
2025-08-02 15:45:32 +05:30
parent cd43f0e98e
commit 933c0741ab
12 changed files with 191 additions and 13 deletions

23
frontend/Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
FROM node:22-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# ------------------------
FROM nginx:stable-alpine
COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]