pulumi/docker/base/Dockerfile.ubi
Paul Stack 83406b97f8
Adding the langage SDK specific docker images (#4837)
* [WIP] Adding the langage SDK specific docker images

Fixes: #3789

* add multiple os build

This introduces multiple containers images with various different OS's.
The base build is based on debian (symlinked from the Dockerfile.debian)
build.

We also have UBi based images, and alpine based images

* Adding the langage SDK specific docker images

Fixes: #3789

* remove alpine builds

* test docker readme sync

* fix description

* fix name of sync task

Co-authored-by: Lee Briggs <lee@leebriggs.co.uk>
2020-06-18 01:35:45 +01:00

33 lines
922 B
Docker

# syntax = docker/dockerfile:experimental
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest as builder
ARG PULUMI_VERSION=latest
RUN --mount=target=/var/cache/yum,type=cache \
microdnf install -y \
curl \
make \
gcc \
git \
tar \
gcc-c++
# Install the Pulumi SDK, including the CLI and language runtimes.
RUN if [ "$PULUMI_VERSION" = "latest" ]; then \
curl -fsSL https://get.pulumi.com/ | bash; \
else \
curl -fsSL https://get.pulumi.com/ | bash -s -- --version $PULUMI_VERSION ; \
fi
# The runtime container
# This is our base container, so let's copy all the runtimes to .pulumi/bin
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
WORKDIR /pulumi
COPY --from=builder /root/.pulumi/bin bin
RUN --mount=target=/var/cache/yum,type=cache \
microdnf install -y \
git \
tar \
ca-certificates
ENV PATH "/pulumi/bin:${PATH}"
CMD ["pulumi"]