chb2024 commited on
Commit
bc892d8
·
verified ·
1 Parent(s): 2ac657e

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a base image that supports CPU mining, like Ubuntu
2
+ FROM ubuntu:latest
3
+
4
+ # Install necessary packages
5
+ RUN apt-get update && apt-get install -y \
6
+ wget \
7
+ tar \
8
+ wine-stable \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ # Download the latest version of lolMiner
12
+ RUN wget https://github.com/Lolliedieb/lolMiner-releases/releases/download/1.94/lolMiner_v1.94_Lin64.tar.gz -O lolMiner.tar.gz \
13
+ && tar -xvf lolMiner.tar.gz \
14
+ && mv 1.94/lolMiner /usr/local/bin/lolMiner \
15
+ && rm -rf 1.94 lolMiner.tar.gz
16
+
17
+ # Copy the configuration script into the container
18
+ COPY miner-config.bat /app/miner-config.bat
19
+
20
+ # Set the working directory
21
+ WORKDIR /app
22
+
23
+ # Run the mining script using Wine to execute the batch file
24
+ CMD ["sh", "-c", "wine cmd /c miner-config.bat"]