This repository has been archived by the owner on Mar 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
22 additions
and
15 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 |
---|---|---|
@@ -1,21 +1,19 @@ | ||
# Build image | ||
FROM golang:1.12.2-alpine3.9 AS build | ||
FROM alpine:latest AS build | ||
|
||
# Build requirements | ||
RUN apk add --no-cache git make | ||
RUN apk add --no-cache ca-certificates | ||
|
||
# Copy context | ||
COPY . /work | ||
|
||
# Build | ||
RUN cd /work && make build | ||
# Copy binary | ||
COPY dist/linux_amd64/keyvault-certdeploy / | ||
|
||
# --- | ||
|
||
# Runtime image | ||
FROM scratch as app | ||
FROM scratch | ||
LABEL maintainer="Matthias Blaser <[email protected]>" | ||
|
||
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt | ||
COPY --from=build /work/keyvault-certdeploy /keyvault-certdeploy | ||
COPY --from=build /keyvault-certdeploy /keyvault-certdeploy | ||
|
||
CMD ["/keyvault-certdeploy"] |
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