Don't rebuild the base layers when not needed

This commit is contained in:
Tim Hockin 2019-10-25 21:00:02 -07:00
parent b291874d3b
commit 98022e4fe8
1 changed files with 2 additions and 2 deletions

View File

@ -16,8 +16,6 @@ FROM {ARG_FROM}
MAINTAINER Tim Hockin <thockin@google.com> MAINTAINER Tim Hockin <thockin@google.com>
ADD bin/{ARG_OS}_{ARG_ARCH}/{ARG_BIN} /{ARG_BIN}
RUN apt-get update \ RUN apt-get update \
&& apt-get -y install \ && apt-get -y install \
ca-certificates \ ca-certificates \
@ -28,6 +26,8 @@ RUN apt-get update \
RUN echo "git-sync:x:65533:65533::/tmp:/sbin/nologin" >> /etc/passwd RUN echo "git-sync:x:65533:65533::/tmp:/sbin/nologin" >> /etc/passwd
ADD bin/{ARG_OS}_{ARG_ARCH}/{ARG_BIN} /{ARG_BIN}
WORKDIR /tmp WORKDIR /tmp
USER git-sync:nogroup USER git-sync:nogroup
ENTRYPOINT ["/{ARG_BIN}"] ENTRYPOINT ["/{ARG_BIN}"]