k5web/Dockerfile
sysuid cf0e455007 Update Dockerfile
deploy static file into nginx image
2024-06-08 16:30:04 +08:00

17 lines
194 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 dist/ /usr/share/nginx/html/
EXPOSE 80