-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Install git in Docker image (#158)
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"] |