-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (21 loc) · 946 Bytes
/
Dockerfile
File metadata and controls
26 lines (21 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM alpine:3
ARG VERSION=6.25.0
ARG SHA256SUM=4732cee4ffad920392fa35e432b77294f2cdf69fbb73491a7dff8b649336f888
ENV VERSION=${VERSION}
ENV SHA256SUM=${SHA256SUM}
LABEL maintainer="artur@magicgrants.org" \
version=${VERSION} \
org.opencontainers.image.source="https://github.com/MAGICGrants/xmrig-docker"
USER root
WORKDIR /root
RUN apk add wget jq
RUN wget https://github.com/xmrig/xmrig/releases/download/v${VERSION}/xmrig-${VERSION}-linux-static-x64.tar.gz && \
echo "${SHA256SUM} xmrig-${VERSION}-linux-static-x64.tar.gz" | sha256sum -c && \
tar -xzf xmrig-${VERSION}-linux-static-x64.tar.gz && \
rm xmrig-${VERSION}-linux-static-x64.tar.gz && \
mv xmrig-${VERSION}/xmrig /usr/local/bin/xmrig && \
mkdir -p $HOME/.config && \
cp xmrig-${VERSION}/config.json $HOME/.config/xmrig.json && \
cp xmrig-${VERSION}/config.json $HOME/xmrig-config.json && \
rm -rf xmrig-${VERSION}
ENTRYPOINT ["xmrig"]