Skip to content

Commit d19147b

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

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

Dockerfile

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

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} \
21-
apt-get update && \
19+
RUN apt-get update && \
2220
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
2321

2422
RUN locale-gen en_US.UTF-8
@@ -54,9 +52,7 @@ FROM debian:bookworm
5452
WORKDIR /app
5553
ENV DEBIAN_FRONTEND=noninteractive
5654

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} \
59-
apt-get update && \
55+
RUN apt-get update && \
6056
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
6157

6258
RUN locale-gen en_US.UTF-8

0 commit comments

Comments
 (0)