From 59a88f15f96086cc286960f401ae1c6ef93624f3 Mon Sep 17 00:00:00 2001 From: Dogan Ulus Date: Sat, 21 Dec 2024 20:05:57 +0300 Subject: [PATCH] Fix apt install order --- containers/autoware-devel/Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/containers/autoware-devel/Dockerfile b/containers/autoware-devel/Dockerfile index fb59e80..dea8056 100644 --- a/containers/autoware-devel/Dockerfile +++ b/containers/autoware-devel/Dockerfile @@ -200,6 +200,13 @@ RUN --mount=type=bind,from=autoware-source,source=${AUTOWARE_DEVEL_SOURCE_DIR},t FROM ${IMAGE_NAME}:${AUTOWARE_VERSION}-builder-with-cache AS autoware-devel ARG TARGETARCH TARGETOS TARGETPLATFORM TARGETVARIANT +RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=${TARGETPLATFORM}/var/cache/apt \ + export DEBIAN_FRONTEND=noninteractive && \ + apt-get update -qq && \ + apt-get install -qy --no-install-recommends \ + nano \ + && apt-get autoremove -y && rm -rf /var/lib/apt/lists/* + USER bounverif WORKDIR ${HOME} @@ -210,13 +217,6 @@ ENV AUTOWARE_DEVEL_INSTALL_DIR=${AUTOWARE_DEVEL_ROOT}/install ENV CCACHE_READONLY=true -RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=${TARGETPLATFORM}/var/cache/apt \ - export DEBIAN_FRONTEND=noninteractive && \ - apt-get update -qq && \ - apt-get install -qy --no-install-recommends \ - nano \ - && apt-get autoremove -y && rm -rf /var/lib/apt/lists/* - COPY autoware-devel/entrypoint.devel.sh /etc/autoware/entrypoint.sh RUN chmod +x /etc/autoware/entrypoint.sh