Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump library/alpine from 3.20.2 to 3.20.3 #4

Merged
merged 6 commits into from
Oct 15, 2024
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
# BUILDPLATFORM is an automatic platform ARG enabled by Docker BuildKit.
# Represents the platform where the build is happening, do not mix with
# TARGETARCH
FROM docker.io/library/alpine:3.18.4
FROM docker.io/library/alpine:3.20.3
RUN apk add --no-cache curl iputils bind-tools tcpdump
ENTRYPOINT ["/usr/bin/curl"]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: Implement a multi-stage build to reduce the final image size [Enhancement, importance: 7]

Suggested change
FROM docker.io/library/alpine:3.20.3
RUN apk add --no-cache curl iputils bind-tools tcpdump
ENTRYPOINT ["/usr/bin/curl"]
FROM docker.io/library/alpine:3.20.3@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d AS builder
RUN apk add --no-cache curl iputils bind-tools tcpdump
FROM docker.io/library/alpine:3.20.3@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d
COPY --from=builder /usr/bin/curl /usr/bin/curl
COPY --from=builder /usr/bin/ping /usr/bin/ping
COPY --from=builder /usr/bin/dig /usr/bin/dig
COPY --from=builder /usr/sbin/tcpdump /usr/sbin/tcpdump
ENTRYPOINT ["/usr/bin/curl"]

Loading