Files
front/Dockerfile
admin bf9d63e635
Some checks failed
continuous-integration/drone Build is failing
add
2026-04-07 11:15:50 +10:00

19 lines
275 B
Docker

# Stage 1: Build
FROM node:22-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# Stage 2: Serve with nginx
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]