Skip to content

Commit

Permalink
Replace ADDs from git with explicit git clone commands
Browse files Browse the repository at this point in the history
  • Loading branch information
patrislav committed Feb 15, 2024
1 parent 0230bf2 commit 5cf4fd0
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 @@ -2,7 +2,7 @@
FROM rust AS eif_build

RUN mkdir /workspace
ADD https://github.com/aws/aws-nitro-enclaves-image-format.git#main /workspace
RUN git clone --depth 1 -b main https://github.com/aws/aws-nitro-enclaves-image-format.git /workspace

WORKDIR /workspace

Expand All @@ -13,10 +13,10 @@ RUN cargo build --example eif_build
###############################################################################
FROM alpine AS chrony

RUN apk add linux-headers build-base bison asciidoctor
RUN apk add git linux-headers build-base bison asciidoctor

RUN mkdir /workspace
ADD https://gitlab.com/chrony/chrony.git#4.5 /workspace
RUN git clone --depth 1 -b 4.5 https://gitlab.com/chrony/chrony.git /workspace

WORKDIR /workspace

Expand Down

0 comments on commit 5cf4fd0

Please sign in to comment.