2023-04-07 00:39:26 +02:00
|
|
|
FROM node:16-alpine as build
|
2023-03-30 15:15:54 +02:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
2023-04-07 17:45:39 +02:00
|
|
|
COPY package.json .
|
|
|
|
COPY package-lock.json .
|
2023-03-30 15:15:54 +02:00
|
|
|
|
2023-04-07 00:52:41 +02:00
|
|
|
RUN npm install
|
|
|
|
|
2023-04-07 17:36:38 +02:00
|
|
|
COPY ./src ./src
|
|
|
|
COPY ./public ./public
|
|
|
|
|
|
|
|
RUN npm run build
|
|
|
|
|
2023-04-07 00:52:41 +02:00
|
|
|
COPY . .
|
|
|
|
|
2023-04-07 17:36:38 +02:00
|
|
|
FROM nginx:stable-alpine
|
|
|
|
COPY --from=build /app/build /usr/share/nginx/html
|
|
|
|
COPY nginx.default.conf /etc/nginx/conf.d/default.conf
|
2023-04-07 00:27:23 +02:00
|
|
|
|