-
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.
- Loading branch information
Showing
32 changed files
with
1,776 additions
and
177 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
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
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,12 +1,19 @@ | ||
FROM alpine:latest as alpine | ||
FROM alpine:latest as builder | ||
RUN apk add -U --no-cache ca-certificates curl | ||
RUN curl -fsSL https://get.pulumi.com | sh | ||
#RUN /root/.pulumi/bin/pulumi plugin install resource azure-native 1.60.0 | ||
|
||
FROM gcr.io/distroless/base:debug-nonroot | ||
FROM alpine:latest | ||
ARG PKG_FILES | ||
WORKDIR / | ||
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
COPY --from=alpine --chown=nonroot /root/.pulumi/ /home/nonroot/.pulumi/ | ||
COPY --chown=nonroot /$PKG_FILES / | ||
|
||
RUN apk add -U --no-cache powershell bash | ||
|
||
RUN addgroup -g 1300 -S nonroot \ | ||
&& adduser -u 1300 -S nonroot -G nonroot | ||
|
||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
COPY --from=builder --chown=nonroot /root/.pulumi/ /home/nonroot/.pulumi/ | ||
COPY --chown=nonroot /$PKG_FILES / | ||
ENV PATH="/home/nonroot/.pulumi/bin:${PATH}" | ||
USER nonroot |
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
Oops, something went wrong.