2025-02-25 23:28:43 +00:00
|
|
|
FROM node:18-alpine
|
2022-06-30 12:10:19 +00:00
|
|
|
|
|
|
|
|
# needed to compile translations
|
2025-02-25 23:28:43 +00:00
|
|
|
RUN apk add --no-cache jq bash coreutils python3
|
2022-06-30 12:10:19 +00:00
|
|
|
|
2025-02-25 23:28:43 +00:00
|
|
|
EXPOSE 8080
|
2022-06-30 12:10:19 +00:00
|
|
|
WORKDIR /app/
|
2025-02-25 23:28:43 +00:00
|
|
|
COPY scripts/ ./scripts/
|
2022-06-30 12:10:19 +00:00
|
|
|
ADD package.json yarn.lock ./
|
2025-02-25 23:28:43 +00:00
|
|
|
RUN yarn install
|
2022-06-30 12:10:19 +00:00
|
|
|
|
2025-02-25 23:28:43 +00:00
|
|
|
COPY . .
|
2022-06-30 12:10:19 +00:00
|
|
|
|
2025-02-25 23:28:43 +00:00
|
|
|
CMD [ "yarn", "serve" ]
|
2025-02-25 00:09:10 +00:00
|
|
|
|
|
|
|
|
HEALTHCHECK --start-period=30s --interval=10s --timeout=5s \
|
|
|
|
|
CMD wget --no-verbose --tries=1 --spider http://localhost:8080/ || exit 1
|