Scout/deploy/frontend.Dockerfile
2026-08-31 00:06:06 +08:00

14 lines
308 B
Docker

# syntax=docker/dockerfile:1
FROM node:24-alpine AS build
WORKDIR /src/frontend
COPY frontend/package*.json ./
RUN npm ci
COPY frontend ./
RUN npm run build
FROM nginx:1.29-alpine
COPY --from=build /src/frontend/dist /usr/share/nginx/html
COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80