-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
36 lines (26 loc) · 919 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
27
28
29
30
31
32
33
34
35
36
FROM node:20.15.1-alpine3.20 AS base
RUN apk add --no-cache python3=3.12.3-r1 g++=13.2.1_git20240309-r0 make=4.4.1-r2 sqlite=3.45.3-r1
FROM base as builder
WORKDIR /app
COPY . .
RUN yarn install --immutable && yarn run build
# Final stage: copy compiled Javascript from previous stage and install production dependencies
FROM base as production
LABEL "network.forta.settings.agent-logs.enable"="true"
ENV APP_NAME=l2-bridge-arbitrum
ENV NETWORK_NAME=Arbitrum
ENV NODE_ENV=production
ENV ETHEREUM_RPC_URL=https://eth.drpc.org
ENV ARBITRUM_RPC_URL=https://arbitrum-one.publicnode.com
ENV AGENT_GRPC_PORT=50051
ENV HTTP_PORT=3000
ENV LOG_FORMAT=simple
ENV LOG_LEVEL=info
ENV INSTANCE=forta
ENV USE_FORTA_RPC_URL=true
WORKDIR /app
COPY package*.json yarn.lock ./
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/dist ./src
COPY version.json ./
CMD ["yarn", "run", "start:docker:prod"]