2021-03-05 22:00:32 +01:00
|
|
|
FROM node:lts AS build
|
2020-05-24 15:06:47 +02:00
|
|
|
|
2020-05-20 18:46:58 +02:00
|
|
|
WORKDIR /app
|
2021-03-05 22:00:32 +01:00
|
|
|
COPY package.json yarn.lock ./
|
2022-04-10 21:37:12 +02:00
|
|
|
RUN yarn install
|
2020-05-24 15:06:47 +02:00
|
|
|
|
2021-03-05 22:00:32 +01:00
|
|
|
COPY . ./
|
|
|
|
RUN yarn build
|
2020-05-24 22:44:21 +02:00
|
|
|
|
2023-10-23 15:50:15 +02:00
|
|
|
FROM nginx:1.25-alpine3.18
|
2021-03-05 22:00:32 +01:00
|
|
|
COPY --from=build /app/build /app
|
2023-10-23 15:50:15 +02:00
|
|
|
COPY data /app/data
|
2024-01-29 20:44:55 +01:00
|
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
|
|
|
HEALTHCHECK CMD curl -fsS -m 10 -o /dev/null http://localhost:8080
|