83406b97f8
* [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>
33 lines
812 B
Docker
33 lines
812 B
Docker
# syntax = docker/dockerfile:experimental
|
|
FROM alpine:3.12.0 AS builder
|
|
ARG PULUMI_VERSION=latest
|
|
RUN apk update && \
|
|
apk upgrade && \
|
|
apk add \
|
|
curl \
|
|
make \
|
|
libc6-compat \
|
|
gcc \
|
|
git
|
|
# Install the Pulumi SDK, including the CLI and language runtimes.
|
|
RUN if [ "$PULUMI_VERSION" = "latest" ]; then \
|
|
curl -fsSL https://get.pulumi.com/ | sh; \
|
|
else \
|
|
curl -fsSL https://get.pulumi.com/ | sh -s -- --version $PULUMI_VERSION ; \
|
|
fi
|
|
|
|
# The runtime container
|
|
# This is our base container, so let's copy all the runtimes to .pulumi/bin
|
|
FROM alpine:3.12.0
|
|
WORKDIR /pulumi
|
|
COPY --from=builder /root/.pulumi/bin bin
|
|
|
|
RUN apk update && \
|
|
apk upgrade && \
|
|
apk add \
|
|
git \
|
|
libc6-compat \
|
|
ca-certificates
|
|
|
|
ENV PATH "/pulumi/bin:${PATH}"
|
|
CMD ["pulumi"]
|