2022-06-01 17:44:55 +00:00
|
|
|
FROM ubuntu:20.04
|
2021-11-10 23:35:39 +00:00
|
|
|
|
|
|
|
RUN set -e && \
|
|
|
|
apt-get update -q -y --no-install-recommends && \
|
|
|
|
DEBIAN_FRONTEND="noninteractive" apt-get install -q -y --no-install-recommends \
|
|
|
|
git \
|
|
|
|
build-essential \
|
|
|
|
ca-certificates \
|
|
|
|
cmake \
|
|
|
|
libuv1-dev \
|
|
|
|
libssl-dev \
|
|
|
|
libhwloc-dev
|
|
|
|
|
|
|
|
WORKDIR /usr/src
|
|
|
|
RUN git clone https://github.com/xmrig/xmrig.git && \
|
|
|
|
mkdir xmrig/build && \
|
|
|
|
cd xmrig/build && \
|
|
|
|
cmake .. && \
|
|
|
|
make -j$(nproc)
|
|
|
|
|
|
|
|
# ---
|
|
|
|
|
2022-06-01 17:44:55 +00:00
|
|
|
FROM ubuntu:20.04
|
2021-11-10 23:35:39 +00:00
|
|
|
|
|
|
|
COPY --from=0 /usr/src/xmrig/build/xmrig /
|
|
|
|
|
|
|
|
RUN set -e && \
|
|
|
|
apt-get update -q -y --no-install-recommends && \
|
|
|
|
DEBIAN_FRONTEND="noninteractive" apt-get install -q -y --no-install-recommends \
|
|
|
|
libssl1.1 \
|
|
|
|
libcrypto++6 \
|
|
|
|
libhwloc15 \
|
|
|
|
&& \
|
|
|
|
apt-get clean
|
|
|
|
|
|
|
|
WORKDIR /
|
|
|
|
ENTRYPOINT ["/xmrig"]
|