forked from lidofinance/solana-validators-monitoring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (17 loc) · 557 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM node:16-alpine as building
WORKDIR /app
COPY package.json yarn.lock ./
COPY ./build-info.json ./
COPY ./tsconfig*.json ./
COPY ./src ./src
RUN yarn install --frozen-lockfile --non-interactive && yarn cache clean
RUN yarn build
FROM node:16-alpine
WORKDIR /app
COPY --from=building /app/dist ./dist
COPY --from=building /app/node_modules ./node_modules
COPY ./package.json ./
USER node
HEALTHCHECK --interval=60s --timeout=10s --retries=3 \
CMD sh -c "wget -nv -t1 --spider http://localhost:$PORT/health" || exit 1
CMD ["yarn", "start:prod"]