Compare commits
2 commits
main
...
feat/docke
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
18161c503e | ||
|
|
d1d9efb017 |
2 changed files with 31 additions and 14 deletions
39
Dockerfile
39
Dockerfile
|
|
@ -1,27 +1,44 @@
|
|||
FROM node:20-bookworm-slim AS builder
|
||||
FROM ubuntu:24.04 AS builder
|
||||
|
||||
RUN apt-get update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||
git python3 make g++ cmake libboost-all-dev libssl-dev && \
|
||||
git python3 make g++ cmake libboost-all-dev libssl-dev \
|
||||
curl ca-certificates && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /pool
|
||||
RUN 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 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
|
||||
|
||||
# Copy pool source
|
||||
COPY package.json .
|
||||
WORKDIR /zano-node-util
|
||||
RUN npm install --ignore-scripts
|
||||
RUN npx node-gyp rebuild
|
||||
|
||||
# Build native modules
|
||||
# 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
|
||||
|
||||
COPY . .
|
||||
|
||||
FROM node:20-bookworm-slim
|
||||
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/*
|
||||
WORKDIR /pool
|
||||
COPY --from=builder /pool /pool
|
||||
COPY --from=builder /zano-node-util /zano-node-util
|
||||
|
||||
EXPOSE 2117 5555 7777 8888
|
||||
|
||||
|
|
|
|||
|
|
@ -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 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">
|
||||
<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">
|
||||
|
||||
<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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue