diff --git a/services/api-server/Dockerfile b/services/api-server/Dockerfile index a3e3ec6617c..e7d207dbf6b 100644 --- a/services/api-server/Dockerfile +++ b/services/api-server/Dockerfile @@ -25,6 +25,7 @@ RUN --mount=type=cache,target=/var/cache/apt \ apt-get install -y --no-install-recommends \ gosu \ && apt-get clean -y \ + && rm -rf /var/lib/apt/lists/* \ # verify that the binary works && gosu nobody true diff --git a/services/catalog/Dockerfile b/services/catalog/Dockerfile index 6744f0d6dff..c19e840ead0 100644 --- a/services/catalog/Dockerfile +++ b/services/catalog/Dockerfile @@ -26,6 +26,7 @@ RUN --mount=type=cache,target=/var/cache/apt \ apt-get install -y --no-install-recommends \ gosu \ && apt-get clean -y \ + && rm -rf /var/lib/apt/lists/* \ # verify that the binary works && gosu nobody true diff --git a/services/dask-sidecar/Dockerfile b/services/dask-sidecar/Dockerfile index ec4457d3280..fa053e6d16e 100644 --- a/services/dask-sidecar/Dockerfile +++ b/services/dask-sidecar/Dockerfile @@ -30,6 +30,7 @@ RUN --mount=type=cache,target=/var/cache/apt \ curl \ gosu \ && apt-get clean -y \ + && rm -rf /var/lib/apt/lists/* \ # verify that the binary works && gosu nobody true diff --git a/services/datcore-adapter/Dockerfile b/services/datcore-adapter/Dockerfile index a63a0a3513b..40e2ca12998 100644 --- a/services/datcore-adapter/Dockerfile +++ b/services/datcore-adapter/Dockerfile @@ -26,6 +26,7 @@ RUN --mount=type=cache,target=/var/cache/apt \ apt-get install -y --no-install-recommends \ gosu \ && apt-get clean -y \ + && rm -rf /var/lib/apt/lists/* \ # verify that the binary works && gosu nobody true diff --git a/services/director-v2/Dockerfile b/services/director-v2/Dockerfile index 636def3b0a1..0dcaf251bcb 100644 --- a/services/director-v2/Dockerfile +++ b/services/director-v2/Dockerfile @@ -26,6 +26,7 @@ RUN --mount=type=cache,target=/var/cache/apt \ apt-get install -y --no-install-recommends \ gosu \ && apt-get clean -y \ + && rm -rf /var/lib/apt/lists/* \ # verify that the binary works && gosu nobody true diff --git a/services/director/Dockerfile b/services/director/Dockerfile index 4080698b210..c9080f0c6b7 100644 --- a/services/director/Dockerfile +++ b/services/director/Dockerfile @@ -26,6 +26,7 @@ RUN --mount=type=cache,target=/var/cache/apt \ apt-get install -y --no-install-recommends \ gosu \ && apt-get clean -y \ + && rm -rf /var/lib/apt/lists/* \ # verify that the binary works && gosu nobody true diff --git a/services/dynamic-scheduler/Dockerfile b/services/dynamic-scheduler/Dockerfile index 3202998c198..a631d8a51df 100644 --- a/services/dynamic-scheduler/Dockerfile +++ b/services/dynamic-scheduler/Dockerfile @@ -26,6 +26,7 @@ RUN --mount=type=cache,target=/var/cache/apt \ apt-get install -y --no-install-recommends \ gosu \ && apt-get clean -y \ + && rm -rf /var/lib/apt/lists/* \ # verify that the binary works && gosu nobody true diff --git a/services/invitations/Dockerfile b/services/invitations/Dockerfile index 4c17072daf3..6a1f727c86e 100644 --- a/services/invitations/Dockerfile +++ b/services/invitations/Dockerfile @@ -26,6 +26,7 @@ RUN --mount=type=cache,target=/var/cache/apt \ apt-get install -y --no-install-recommends \ gosu \ && apt-get clean -y \ + && rm -rf /var/lib/apt/lists/* \ # verify that the binary works && gosu nobody true diff --git a/services/payments/Dockerfile b/services/payments/Dockerfile index c3dc402038e..df7098e6aeb 100644 --- a/services/payments/Dockerfile +++ b/services/payments/Dockerfile @@ -26,6 +26,7 @@ RUN --mount=type=cache,target=/var/cache/apt \ apt-get install -y --no-install-recommends \ gosu \ && apt-get clean -y \ + && rm -rf /var/lib/apt/lists/* \ # verify that the binary works && gosu nobody true diff --git a/services/resource-usage-tracker/Dockerfile b/services/resource-usage-tracker/Dockerfile index fec93d9ffb1..290b8ad7671 100644 --- a/services/resource-usage-tracker/Dockerfile +++ b/services/resource-usage-tracker/Dockerfile @@ -26,6 +26,7 @@ RUN --mount=type=cache,target=/var/cache/apt \ apt-get install -y --no-install-recommends \ gosu \ && apt-get clean -y \ + && rm -rf /var/lib/apt/lists/* \ # verify that the binary works && gosu nobody true diff --git a/services/storage/Dockerfile b/services/storage/Dockerfile index 28391c635e6..d03072cf6d0 100644 --- a/services/storage/Dockerfile +++ b/services/storage/Dockerfile @@ -25,6 +25,7 @@ RUN --mount=type=cache,target=/var/cache/apt \ apt-get install -y --no-install-recommends \ gosu \ && apt-get clean -y \ + && rm -rf /var/lib/apt/lists/* \ # verify that the binary works && gosu nobody true diff --git a/services/web/Dockerfile b/services/web/Dockerfile index 66274cb67c0..dd9d96f55d4 100644 --- a/services/web/Dockerfile +++ b/services/web/Dockerfile @@ -28,6 +28,7 @@ RUN --mount=type=cache,target=/var/cache/apt \ libmagic1 \ gosu \ && apt-get clean -y \ + && rm -rf /var/lib/apt/lists/* \ # verify that the binary works && gosu nobody true