2023-05-31 20:43:04 +02:00
|
|
|
FROM node:18 AS build
|
2023-05-29 07:22:31 +02:00
|
|
|
|
2023-05-31 20:43:04 +02:00
|
|
|
WORKDIR /usr
|
|
|
|
COPY package.json ./
|
|
|
|
COPY yarn.lock ./
|
|
|
|
RUN yarn install --frozen-lockfile
|
|
|
|
COPY . ./
|
|
|
|
RUN yarn build
|
|
|
|
|
|
|
|
FROM nginx:alpine
|
2023-05-29 07:22:31 +02:00
|
|
|
|
2023-05-31 20:43:04 +02:00
|
|
|
COPY --from=build /usr/dist /usr/share/nginx/html
|
|
|
|
#COPY nginx.conf /etc/nginx/nginx.conf
|
2023-05-29 07:22:31 +02:00
|
|
|
|
2023-05-31 20:43:04 +02:00
|
|
|
EXPOSE 80
|
|
|
|
CMD ["nginx","-g","daemon off;"]
|