2
0
mirror of https://github.com/meganz/MEGAcmd synced 2025-08-31 13:55:10 +00:00

Move ARG declaration to just above RUN to avoid cache invalidation.

This commit is contained in:
Vibhav Pant
2024-02-09 22:57:57 +05:30
parent 8490338672
commit 640ac1003c

View File

@@ -94,10 +94,10 @@ WORKDIR /usr/src/megacmd
ENV CC "ccache gcc-12"
ENV CXX "ccache g++-12"
ENV CCACHE_DIR /tmp/ccache
ARG BUILD_OPT_SANITIZERS=all
COPY --from=src /usr/src/megacmd /usr/src/megacmd
ARG BUILD_OPT_SANITIZERS=all
RUN --mount=type=cache,target=/tmp/ccache \
./autogen.sh \
&& ./configure --disable-silent-rules --prefix=/usr/local \