- Dockerfile: node:8 → node:20, modern build chain - Config: ports 5555/7777/8888, Redis auth, testnet difficulty - Remove cryptonight-hashing dependency (ProgPoWZ via zano-node-util) Co-Authored-By: Charon <charon@lethean.io>
28 lines
611 B
Docker
28 lines
611 B
Docker
FROM node:20-bookworm-slim AS builder
|
|
|
|
RUN apt-get update && \
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
|
git python3 make g++ cmake libboost-all-dev libssl-dev && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /pool
|
|
|
|
# Copy zano-node-util first (native dependency)
|
|
COPY ../zano-node-util /zano-node-util
|
|
|
|
# Copy pool source
|
|
COPY package.json .
|
|
RUN npm install --ignore-scripts
|
|
|
|
# Build native modules
|
|
RUN cd node_modules/bignum && npx node-gyp rebuild || true
|
|
|
|
COPY . .
|
|
|
|
FROM node:20-bookworm-slim
|
|
WORKDIR /pool
|
|
COPY --from=builder /pool /pool
|
|
|
|
EXPOSE 2117 5555 7777 8888
|
|
|
|
CMD ["node", "init.js"]
|