Skip to content

Commit

Permalink
feat: Install git in Docker image (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbernius authored Oct 10, 2024
1 parent 571a720 commit ad3cccd
Showing 1 changed file with 3 additions and 3 deletions.
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 <wander4096@gmail.com> 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"]

0 comments on commit ad3cccd

Please sign in to comment.