k5web/Dockerfile
sysuid b99f3b2c9e
Update Dockerfile
fix copy static file
2024-06-08 10:09:36 +08:00

17 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