Files
2025-12-29 00:41:26 +08:00

16 lines
278 B
Docker

FROM node:18-alpine AS build
WORKDIR /app
COPY package*.json /app/
RUN yarn
COPY . /app
RUN yarn build:prod
FROM nginx:alpine
COPY dynamic-env.json /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist/Demo /usr/share/nginx/html