Skip to content

Commit 2e5e5fe

Browse files
committed
docker: clean apt cache and add --no-install-recommends in Dockerfile.ubuntu
1 parent 6b6397a commit 2e5e5fe

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Dockerfile.ubuntu

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ RUN echo "finished building redlib!"
2626
FROM ubuntu:${UBUNTU_RELEASE_VERSION} AS release
2727

2828
# Install ca-certificates
29-
RUN apt-get update && apt-get install -y ca-certificates
29+
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates \
30+
&& rm -rf /var/lib/apt/lists/*
3031

3132
# Import redlib binary from builder
3233
COPY --from=builder /redlib/target/release/redlib /usr/local/bin/redlib

0 commit comments

Comments
 (0)