Files
anime-qize/frontend/Dockerfile

19 lines
288 B
Docker
Raw Normal View History

# Build stage
FROM node:20-slim AS build
2025-12-30 17:37:14 +03:00
WORKDIR /app
COPY package.json package-lock.json* ./
2025-12-30 17:37:14 +03:00
RUN npm install
COPY . .
RUN npm run build
# Production stage - just serve static files
FROM nginx:alpine
2025-12-30 17:37:14 +03:00
# Copy built frontend
COPY --from=build /app/dist /usr/share/nginx/html
2025-12-30 17:37:14 +03:00
EXPOSE 80