try using -mount=type=bind to shrink container for sogo

This commit is contained in:
kjeld Schouten-Lebbing
2021-09-05 22:57:33 +02:00
parent 78c22c53b4
commit e09b3c8e24

View File

@@ -39,10 +39,10 @@ ENV GOSU_VERSION 1.12
USER root
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
COPY --from=builder /buildtmp/vendor/ /build
# hadolint ignore=DL3008,DL3015,SC2086,SC2155,DL3047
RUN \
RUN --mount=type=bind,from=builder,source=/buildtmp/vendor,target=/build \
cat /build/sogo/README.md && \
apt-get -qq update \
&& \
apt-get -qq install -y \