-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Prefetch deps and store in container image
Signed-off-by: Mike Sul <mike.sul@foundries.io>
- Loading branch information
Showing
3 changed files
with
13 additions
and
2 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
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 |
---|---|---|
@@ -1,4 +1,11 @@ | ||
FROM golang:1.22-alpine | ||
|
||
ARG REG_CERT=test/compose/registry/certs/registry.crt | ||
|
||
RUN apk add make curl docker docker-compose git | ||
COPY registry/certs/registry.crt /etc/ssl/certs/ | ||
|
||
COPY $REG_CERT /etc/ssl/certs/registry.crt | ||
RUN cat /etc/ssl/certs/registry.crt >> /etc/ssl/certs/ca-certificates.crt | ||
WORKDIR /build | ||
COPY go.mod go.sum ./ | ||
RUN go mod download |
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