diff --git a/Dockerfile b/Dockerfile index 38d7b96d..297789a8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,12 +14,13 @@ RUN set -x \ pkg-config \ ' \ && apt-get -qq update \ - && apt-get -qq --no-install-recommends install $buildDeps \ - \ - && git clone https://github.com/monero-project/monero.git $SRC_DIR \ - && cd $SRC_DIR \ - && make -j$(nproc) release-static \ - && cp build/release/bin/* /usr/local/bin/ \ + && apt-get -qq --no-install-recommends install $buildDeps + +RUN git clone https://github.com/monero-project/monero.git $SRC_DIR +WORKDIR $SRC_DIR +RUN make -j$(nproc) release-static + +RUN cp build/release/bin/* /usr/local/bin/ \ \ && rm -r $SRC_DIR \ && apt-get -qq --auto-remove purge $buildDeps