19 lines
303 B
Docker
19 lines
303 B
Docker
FROM node:20-alpine AS builder
|
|
WORKDIR /app
|
|
|
|
COPY package*.json ./
|
|
RUN yarn
|
|
|
|
COPY . .
|
|
RUN yarn build
|
|
|
|
FROM nginx:stable-alpine as
|
|
|
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
|
|
|
RUN rm /etc/nginx/conf.d/default.conf
|
|
COPY /nginx/default.conf /etc/nginx/conf.d
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|
|
|
|
|