luluhacker commited on
Commit
5911483
·
verified ·
1 Parent(s): 73a003a

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +38 -0
Dockerfile ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the latest Debian image as the base
2
+ FROM debian:latest
3
+
4
+ # Set working directory
5
+ WORKDIR /xmrig
6
+
7
+ # Install dependencies
8
+ RUN apt-get update && \
9
+ apt-get install -y \
10
+ git \
11
+ build-essential \
12
+ cmake \
13
+ libuv1-dev \
14
+ libssl-dev \
15
+ libhwloc-dev
16
+
17
+ # Clone the XMRig repository
18
+ RUN git clone https://github.com/xmrig/xmrig.git
19
+
20
+ # Change directory to the cloned repository
21
+ WORKDIR /xmrig/xmrig
22
+
23
+ # Build XMRig
24
+ RUN mkdir build && cd build && \
25
+ cmake .. && \
26
+ make -j$(nproc)
27
+
28
+ # Expose the ports for the mining pool
29
+ EXPOSE 10300
30
+ EXPOSE 10343
31
+
32
+ # Set the default environment variables
33
+ ENV WALLET_ADDRESS=46hkUW5558rbUX2wtg5cE2UwErru229jWLLcc6197HsYckLqNoRdJFKADW84YLaKjCR8xG8TJy93rT6wcn82aXREUTAhVJ9
34
+ ENV POOL_URL=xmr-asia1.nanopool.org
35
+ ENV STRATUM_PORT=10300
36
+
37
+ # Command to run XMRig with the provided wallet address and pool details
38
+ CMD ["./xmrig", "-o", "ssl://xmr-asia1.nanopool.org:10343", "-u", "${WALLET_ADDRESS}", "-p", "x", "-k", "--tls"]