Skip to content

Commit

Permalink
fix: remove args build xmrig and flow check arch
Browse files Browse the repository at this point in the history
  • Loading branch information
lpsm-dev committed Jan 7, 2022
1 parent f9c5d18 commit 455520a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM alpine:edge as build
FROM alpine:3.15 as build
ARG XMRIG_VERSION=v6.15.3
ARG XMRIG_URL="https://github.com/xmrig/xmrig.git"
ARG XMRIG_BUILD_ARGS="-DXMRIG_DEPS=scripts/deps -DBUILD_STATIC=ON -DCMAKE_BUILD_TYPE=Release -DWITH_HWLOC=OFF -DCMAKE_SYSTEM_NAME=Linux -DARM_TARGET=7 -DCMAKE_SYSTEM_PROCESSOR=arm"
ARG XMRIG_BUILD_ARGS="-DXMRIG_DEPS=scripts/deps -DBUILD_STATIC=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_NAME=Linux"
RUN set -ex && \
apk add --no-cache git make cmake \
libstdc++ gcc g++ automake libtool libuv-dev \
Expand All @@ -12,8 +12,6 @@ RUN set -ex; \
mkdir ./xmrig/build && \
sed -i "s/kDefaultDonateLevel = 1;/kDefaultDonateLevel = 0;/g" ./xmrig/src/donate.h && \
sed -i "s/kMinimumDonateLevel = 1;/kMinimumDonateLevel = 0;/g" ./xmrig/src/donate.h && \
export ARCH="$(uname -m)" && export XMRIG_BUILD_EXTRA_ARGS="" && \
if [[ "$ARCH" == *"aarch64"* ]]; then echo "aarch64" && export XMRIG_BUILD_EXTRA_ARGS="-DARM_TARGET=7 -DCMAKE_SYSTEM_PROCESSOR=arm"; fi && \
cd xmrig/scripts && ./build_deps.sh && cd ../build && \
echo $XMRIG_BUILD_EXTRA_ARGS && \
cmake .. $XMRIG_BUILD_ARGS $XMRIG_BUILD_EXTRA_ARGS && \
Expand Down

0 comments on commit 455520a

Please sign in to comment.