Skip to content

Commit 0d09ad5

Browse files
dabasvibhorVibhor Dabas
andauthored
fix: add id for apt-cache in dockerfile (#22)
* fix: create arm docker image * fix: remove existing step * fix: add id for apt-cache --------- Co-authored-by: Vibhor Dabas <vibhor.dabas@bcbgroup.io>
1 parent 4e499c5 commit 0d09ad5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ FROM debian:bookworm AS gcloud-installer
1616
WORKDIR /app
1717
ENV DEBIAN_FRONTEND=noninteractive
1818

19-
RUN --mount=type=cache,target=/var/lib/apt \
20-
--mount=type=cache,target=/var/cache/apt \
19+
RUN --mount=type=cache,target=/var/lib/apt,id=apt-cache-${TARGETARCH} \
20+
--mount=type=cache,target=/var/cache/apt,id=apt-cache-${TARGETARCH} \
2121
apt-get update && \
2222
apt-get install --no-install-recommends -y curl unzip ca-certificates zip tzdata wget gnupg2 bzip2 apt-transport-https locales locales-all lsb-release git python3-crcmod python3-openssl
2323

@@ -54,8 +54,8 @@ FROM debian:bookworm
5454
WORKDIR /app
5555
ENV DEBIAN_FRONTEND=noninteractive
5656

57-
RUN --mount=type=cache,target=/var/lib/apt \
58-
--mount=type=cache,target=/var/cache/apt \
57+
RUN --mount=type=cache,target=/var/lib/apt,id=apt-cache-${TARGETARCH} \
58+
--mount=type=cache,target=/var/cache/apt,id=apt-cache-${TARGETARCH} \
5959
apt-get update && \
6060
apt-get install --no-install-recommends -y curl unzip ca-certificates zip tzdata wget gnupg2 bzip2 apt-transport-https locales locales-all lsb-release git python3-crcmod python3-openssl
6161

0 commit comments

Comments
 (0)