k5web/Dockerfile
sysuid 98b56e09e7 Update Dockerfile
fix copy static file
2024-06-08 16:30:04 +08:00

18 lines
217 B
Docker

FROM node:22 AS build-yarn
WORKDIR /app
COPY yarn.lock package.json ./
RUN yarn install
COPY . .
RUN yarn build
FROM nginx:latest AS runtime
COPY --from=build-yarn /app/dist/ /usr/share/nginx/html/
EXPOSE 80