Mining/Dockerfile.node
snider 69376b886f feat: Rebrand xmrig to miner and vendor XMRig ecosystem
Complete rebranding of all components:
- Core miner: xmrig -> miner (binary, version.h, CMakeLists.txt)
- Proxy: xmrig-proxy -> miner-proxy
- CUDA plugin: xmrig-cuda -> miner-cuda
- Heatmap: xmrig-nonces-heatmap -> miner-nonces-heatmap
- Go CLI wrapper: miner-cli -> miner-ctrl

Vendored XMRig ecosystem into miner/ directory:
- miner/core - XMRig CPU/GPU miner
- miner/proxy - Stratum proxy
- miner/cuda - NVIDIA CUDA plugin
- miner/heatmap - Nonce visualization tool
- miner/config - Configuration UI
- miner/deps - Pre-built dependencies

Updated dev fee to use project wallet with opt-out (kMinimumDonateLevel=0)
Updated branding to Lethean (domain, copyright, version 0.1.0)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-30 19:43:02 +00:00

43 lines
948 B
Text

# Dockerfile for testing P2P node functionality
# Build: docker build -f Dockerfile.node -t mining-node .
# Run: docker run -it --name node1 mining-node node serve
# docker run -it --name node2 mining-node node serve
FROM golang:1.24-alpine AS builder
WORKDIR /app
# Install build dependencies
RUN apk add --no-cache git
# Copy go mod files first for caching
COPY go.mod go.sum ./
ENV GOTOOLCHAIN=auto
RUN go mod download
# Copy source code
COPY . .
# Build the CLI
RUN CGO_ENABLED=0 go build -o miner-ctrl ./cmd/mining
# Runtime image
FROM alpine:3.19
WORKDIR /app
# Install runtime dependencies
RUN apk add --no-cache ca-certificates
# Copy the binary
COPY --from=builder /app/miner-ctrl /usr/local/bin/miner-ctrl
# Create config directories
RUN mkdir -p /root/.config/lethean-desktop /root/.local/share/lethean-desktop
# Expose the P2P port
EXPOSE 9091
# Default command shows help
ENTRYPOINT ["miner-ctrl"]
CMD ["--help"]