Files
rubic-cube/Dockerfile
Grzegorz Kucmierz 9272bd9c7d
Some checks failed
Build and Publish Docker Image / build (push) Has been cancelled
Add Dockerfile, nginx config, Gitea workflow and docker-compose
2026-02-15 20:14:58 +01:00

21 lines
318 B
Docker

# Build stage
FROM node:18-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# Production stage
FROM nginx:stable-alpine
COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]