Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions suspicious-funding-ts/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
# Build stage: compile Typescript to Javascript
FROM node:18-alpine3.17 AS builder
FROM node:20-alpine AS builder
WORKDIR /app
COPY . .
RUN npm ci
RUN npm run build

# Final stage: copy compiled Javascript from previous stage and install production dependencies
FROM node:18-alpine3.17
FROM node:20-alpine
ENV NODE_ENV=production
# Uncomment the following line to enable agent logging
LABEL "network.forta.settings.agent-logs.enable"="true"
WORKDIR /app
COPY --from=builder /app/dist ./src
COPY package*.json ./
COPY LICENSE.md ./
COPY forta-bot-0.2.0.tgz ./
COPY forta-bot-cli-0.2.0.tgz ./
COPY LICENSE ./
RUN npm ci --production
CMD [ "npm", "run", "start:prod" ]
1 change: 1 addition & 0 deletions suspicious-funding-ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ This bot identifies when a new EOA receives funds from an address previously fun
- Optimism
- Arbitrum
- Avalanche
- Base

## Alerts

Expand Down
Loading