nex_animation/frontend/Dockerfile

10 lines
222 B
Docker
Raw Normal View History

2026-11-01 08:18:07 +00:00
FROM node:22-alpine AS build
WORKDIR /web
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
FROM nginx:alpine
COPY --from=build /web/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf