Files
rootxwire1/Dockerfile
2025-06-23 19:35:50 +05:30

17 lines
237 B
Docker

# Build stage
FROM node:18 AS build
WORKDIR /app
COPY package*.json ./
RUN npm install --legacy-peer-deps
COPY . .
RUN npm run build
# Production stage
FROM nginx:alpine
COPY --from=build /app/public /usr/share/nginx/html
EXPOSE 80