-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.payout
More file actions
21 lines (19 loc) · 847 Bytes
/
Copy pathDockerfile.payout
File metadata and controls
21 lines (19 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# -----------------------------------------------------------------------------
# simplepool payout worker — Thunder tx sender (Node.js)
# -----------------------------------------------------------------------------
FROM node:20-bookworm-slim AS deps
RUN apt-get update && apt-get install -y --no-install-recommends \
python3 make g++ ca-certificates \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY payout/package.json payout/package-lock.json ./
RUN npm ci --omit=dev
# -----------------------------------------------------------------------------
FROM node:20-bookworm-slim
RUN apt-get update && apt-get install -y --no-install-recommends tini \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY payout/ ./
USER node
ENTRYPOINT ["/usr/bin/tini", "--", "node", "index.js"]