From 3749832fc6d18c9902f416eae4f00ee268a99593 Mon Sep 17 00:00:00 2001 From: Robbie Blaine Date: Fri, 10 Jun 2022 11:35:34 +0200 Subject: [PATCH] Shallow git clone --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2e62aa9..c941b2c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ ################### # --- builder --- # ################### -FROM debian:10-slim AS builder +FROM docker.io/debian:10-slim AS builder WORKDIR /opt @@ -18,7 +18,7 @@ RUN apt-get update && \ update-alternatives --install /usr/bin/python python /usr/bin/python3 1 ARG MONERO_VERSION=0.17.3.2 -RUN git clone --recursive https://github.com/monero-project/monero.git -b v${MONERO_VERSION} +RUN git clone --recursive https://github.com/monero-project/monero.git -b v${MONERO_VERSION} --depth 1 ARG BUILD_THREADS=1 RUN cd monero && \ @@ -33,7 +33,7 @@ RUN cd monero && \ ################## # --- runner --- # ################## -FROM debian:11-slim +FROM docker.io/debian:11-slim ENV PATH=/opt/monero:${PATH}