-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a nonroot variant for the kitchen sink image
- Loading branch information
Showing
6 changed files
with
97 additions
and
18 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 |
---|---|---|
|
@@ -146,6 +146,24 @@ ENV PATH="/pulumi/bin:${PATH}" | |
# I think it's safe to say if we're using this mega image, we want pulumi | ||
ENTRYPOINT ["pulumi"] | ||
|
||
# Nonroot variant of the image | ||
# | ||
# This sets up a non-root user and uses that user for the image. | ||
######################################################################## | ||
|
||
FROM base AS nonroot | ||
|
||
LABEL "repository"="https://github.com/pulumi/pulumi" | ||
LABEL "homepage"="https://pulumi.com" | ||
LABEL "maintainer"="Pulumi Team <[email protected]>" | ||
LABEL org.opencontainers.image.description="The Pulumi CLI, in a Docker container." | ||
|
||
ARG UID=1000 | ||
ARG GID=1000 | ||
RUN addgroup --gid $GID pulumi && \ | ||
adduser --uid $UID --gid $GID --disabled-password --gecos "" pulumi | ||
USER pulumi:pulumi | ||
|
||
# Pulumi Bridged Terraform Provider Build Environment | ||
# | ||
# Bundles together everything needed to build a Terraform-based | ||
|
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