Compare commits

..

No commits in common. "feat/docker-production" and "main" have entirely different histories.

2 changed files with 18 additions and 35 deletions

View file

@ -1,44 +1,27 @@
FROM ubuntu:24.04 AS builder
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 \
curl ca-certificates && \
git python3 make g++ cmake libboost-all-dev libssl-dev && \
rm -rf /var/lib/apt/lists/*
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs && \
rm -rf /var/lib/apt/lists/*
# Copy node-util source and blockchain headers (context is lthn/)
COPY zano-upstream/zano-node-util /zano-node-util
# Replace the broken symlink with the actual blockchain source
RUN rm -rf /zano-node-util/Lethean
COPY blockchain/src /zano-node-util/Lethean/src
COPY blockchain/contrib /zano-node-util/Lethean/contrib
WORKDIR /zano-node-util
RUN npm install --ignore-scripts
RUN npx node-gyp rebuild
# Build the pool
WORKDIR /pool
COPY zano-upstream/zano-pool/package.json .
RUN npm install --ignore-scripts
RUN cd node_modules/bignum && npx node-gyp rebuild || true
COPY zano-upstream/zano-pool/ .
RUN npm install /zano-node-util --install-links
FROM ubuntu:24.04
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
libboost-thread1.83.0 libboost-serialization1.83.0 libboost-locale1.83.0 libssl3t64 curl ca-certificates && \
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs && \
rm -rf /var/lib/apt/lists/*
# 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
COPY --from=builder /zano-node-util /zano-node-util
EXPOSE 2117 5555 7777 8888

View file

@ -4,9 +4,9 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1">
<title>Lethean Mining Pool</title>
<meta name="Description" content="Lethean ProgPoWZ Mining Pool. Privacy-first cryptocurrency mining with low fees and fast payouts.">
<meta name="keywords" content="lethean, mining, pool, progpowz, cryptocurrency, privacy, dvpn, staking">
<title>Lethean Mining by Muscleman</title>
<meta name="Description" content="Lethean Mining Pool by Muscleman. Cryptocurrency mining. Mine direct to exchange or wallet. Low pool fees and fast payments!">
<meta name="keywords" content="lethean, mining, pool, cryptocurrency, exchange, bitrex, coinmarketcap, tradeogre, payments, coinbase, escodex, bitrex">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-timeago/1.6.3/jquery.timeago.min.js"></script>