mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-24 21:32:47 -05:00
Compare commits
4 Commits
v6.21.0
...
c94b063f64
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c94b063f64 | ||
|
|
592b0c9c76 | ||
|
|
89eab0eff2 | ||
|
|
df031be628 |
45
Dockerfile
Normal file
45
Dockerfile
Normal file
@@ -0,0 +1,45 @@
|
||||
# Build in disposable container so run-time container is small
|
||||
FROM alpine:latest as build
|
||||
|
||||
# Build from master by default but allow build time specification
|
||||
ARG ref=master
|
||||
ENV my_ref=$ref
|
||||
|
||||
# Developers may wish to specify an alternate repository for source
|
||||
ARG repo=https://github.com/xmrig/xmrig.git
|
||||
ENV my_repo=$repo
|
||||
|
||||
RUN set -ex && \
|
||||
# testing required for hwloc
|
||||
echo @testing http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
|
||||
|
||||
RUN set -ex && \
|
||||
apk --no-cache --update add \
|
||||
coreutils file grep openssl tar binutils \
|
||||
cmake g++ git linux-headers libpthread-stubs make hwloc-dev@testing \
|
||||
libuv-dev openssl-dev
|
||||
|
||||
WORKDIR /usr/local/src
|
||||
|
||||
RUN set -ex && \
|
||||
git clone $my_repo xmrig && \
|
||||
cd xmrig && git checkout $my_ref && \
|
||||
cmake -B build && \
|
||||
cd build && \
|
||||
make
|
||||
|
||||
# runtime container
|
||||
FROM alpine:latest
|
||||
|
||||
RUN set -ex && \
|
||||
# testing required for hwloc
|
||||
echo @testing http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
|
||||
|
||||
RUN set -ex && \
|
||||
apk --no-cache --update add \
|
||||
# required libraries packages
|
||||
openssl libuv hwloc@testing
|
||||
|
||||
COPY --from=build /usr/local/src/xmrig/build/xmrig /bin/
|
||||
|
||||
ENTRYPOINT ["/bin/xmrig"]
|
||||
@@ -22,7 +22,7 @@
|
||||
#define APP_ID "xmrig"
|
||||
#define APP_NAME "XMRig"
|
||||
#define APP_DESC "XMRig miner"
|
||||
#define APP_VERSION "6.21.0"
|
||||
#define APP_VERSION "6.21.1-dev"
|
||||
#define APP_DOMAIN "xmrig.com"
|
||||
#define APP_SITE "www.xmrig.com"
|
||||
#define APP_COPYRIGHT "Copyright (C) 2016-2023 xmrig.com"
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#define APP_VER_MAJOR 6
|
||||
#define APP_VER_MINOR 21
|
||||
#define APP_VER_PATCH 0
|
||||
#define APP_VER_PATCH 1
|
||||
|
||||
#ifdef _MSC_VER
|
||||
# if (_MSC_VER >= 1930)
|
||||
|
||||
Reference in New Issue
Block a user