14 lines
281 B
Docker
14 lines
281 B
Docker
FROM node:22-alpine AS build
|
|
WORKDIR /app
|
|
COPY package*.json ./
|
|
RUN yarn
|
|
COPY . .
|
|
RUN yarn add -D vite
|
|
RUN yarn rawbuild
|
|
|
|
FROM nginx:stable-alpine AS production
|
|
ADD ./conf/ /etc/nginx/
|
|
COPY --from=build /app/dist/ /usr/share/nginx/html
|
|
EXPOSE 80
|
|
CMD ["nginx", "-g", "daemon off;"]
|