Skip to content

Commit

Permalink
Fix apt install order
Browse files Browse the repository at this point in the history
  • Loading branch information
doganulus committed Dec 21, 2024
1 parent eb1c59f commit 59a88f1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions containers/autoware-devel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand All @@ -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

Expand Down

0 comments on commit 59a88f1

Please sign in to comment.