24 lines
313 B
Docker
24 lines
313 B
Docker
FROM node:20-alpine3.19 AS build
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json ./
|
|
|
|
COPY yarn.lock ./
|
|
|
|
RUN yarn install
|
|
|
|
COPY . ./
|
|
|
|
RUN yarn build
|
|
|
|
FROM nginx:stable-alpine
|
|
|
|
COPY --from=build /app/dist /usr/share/nginx/html
|
|
|
|
COPY nginx/nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
EXPOSE 3000
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|