Skip to content

Commit

Permalink
Revert to alpine based container image
Browse files Browse the repository at this point in the history
* Drop the awscli since I no longer have a use case where
kubectl needs to exec the aws cli tool
* If this is ever brought back, it needs to be installed in
a way that is multi-arch
  • Loading branch information
dghubble committed Jul 15, 2023
1 parent 4e8408d commit 8318734
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,12 @@ FROM docker.io/golang:1.20.6 AS builder
COPY . src
RUN cd src && make build

FROM docker.io/fedora:38
FROM docker.io/alpine:3.18.2
LABEL maintainer="Dalton Hubble <dghubble@gmail.com>"
LABEL org.opencontainers.image.title="scuttle",
LABEL org.opencontainers.image.source="https://github.com/poseidon/scuttle"
LABEL org.opencontainers.image.vendor="Poseidon Labs"
# AWS CLI v2 is an ugly pile of Python with dynamic linking to specific
# shared objects they zip up. And the zip doesn't even have a checksum
#
# Added for a customer using kubeconfig that exec's the aws cli
# https://docs.aws.amazon.com/eks/latest/userguide/create-kubeconfig.html
RUN dnf install -y curl zip && \
curl -L https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.8.13.zip -o awscliv2.zip && \
unzip awscliv2.zip && ./aws/install

RUN apk --no-cache --update add ca-certificates
COPY --from=builder /go/src/bin/scuttle /usr/local/bin
ENTRYPOINT ["/usr/local/bin/scuttle"]

0 comments on commit 8318734

Please sign in to comment.