Files
blog-vue/Dockerfile
merlin 1e8e54ff54
All checks were successful
Docker Image CI / build (push) Successful in 1m11s
chore: update and move to the new server
2026-03-06 10:36:36 +08:00

17 lines
309 B
Docker

FROM registry.merlin.xin/library/node:20-bullseye AS build
WORKDIR /app
COPY package*.json ./
RUN --mount=type=cache,target=/root/.npm \
npm install
COPY . .
RUN npm run build
FROM registry.merlin.xin/mirrors/nginxinc/nginx-unprivileged:stable
COPY --from=build /app/dist /app/dist