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

Update Dockerfile to use alpine for final base image #66

Closed
wants to merge 2 commits into from
Closed
Changes from all 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
13 changes: 6 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,21 @@ RUN rm ./target/release/deps/argocd_diff_preview-*
RUN cargo build --release

# our final base
FROM debian:bookworm-slim
FROM alpine:latest

COPY --from=docker:dind /usr/local/bin/docker /usr/local/bin/

# Install runtime dependencies
RUN apk add --no-cache --update git

COPY --from=build /argocd-diff-preview/kind /usr/local/bin/kind
COPY --from=build /argocd-diff-preview/kubectl /usr/local/bin/kubectl
COPY --from=build /usr/local/bin/helm /usr/local/bin/helm
COPY --from=build /usr/local/bin/argocd /usr/local/bin/argocd
COPY --from=build /argocd-diff-preview/target/release/argocd-diff-preview .

RUN apt-get update && \
apt-get install -y git && \
rm -rf /var/lib/apt/lists/*

# copy argocd helm chart values
# Copy argocd helm chart values
COPY ./argocd-config ./argocd-config

# set the startup command to run your binary
# Set the startup command to run your binary
ENTRYPOINT ["./argocd-diff-preview"]