Files
simple-admin/Dockerfile
2025-11-04 16:05:36 +05:00

21 lines
325 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Build stage
FROM node:20-alpine
WORKDIR /app
# Copy dependencies
COPY package.json package-lock.json* ./
RUN npm ci --legacy-peer-deps
# Copy all source
COPY . .
# Set production env (agar .env.production bolsa ishlaydi)
ENV NODE_ENV=production
# Build for production
RUN npm run build
ENTRYPOINT npm run preview