thehrz.net/Dockerfile
2023-08-17 21:34:18 +08:00

11 lines
243 B
Docker

FROM node:19-alpine as frontend
WORKDIR /frontend
COPY ./package.json ./
RUN npm install
COPY . .
RUN npm run build
FROM nginx:1.19
WORKDIR /nginx
COPY ./nginx/conf.d /etc/nginx/conf.d
COPY --from=frontend /frontend/dist /usr/local/nginx/html