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

feat: install git into Docker image #158

Merged
merged 1 commit into from
Oct 10, 2024
Merged
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
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
# Copyright 2024 - 2024, tison <[email protected]> and the HawkEye contributors
# SPDX-License-Identifier: Apache-2.0

FROM public.ecr.aws/docker/library/rust:1.76.0-alpine3.19 as build
FROM public.ecr.aws/docker/library/rust:1.81.0-alpine3.20 as build
ENV RUSTFLAGS="-C target-feature=-crt-static"
WORKDIR /build
COPY . .
RUN apk fix && \
apk --no-cache --update add git musl-dev && \
cargo build --release --bin hawkeye

FROM public.ecr.aws/docker/library/alpine:3.19.0
FROM public.ecr.aws/docker/library/alpine:3.20.0
COPY --from=build /build/target/release/hawkeye /bin/
RUN apk fix && apk --no-cache --update add libgcc
RUN apk fix && apk --no-cache --update add libgcc git
WORKDIR /github/workspace/
ENTRYPOINT ["/bin/hawkeye"]