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>
26 lines
772 B
Docker
26 lines
772 B
Docker
# syntax = docker/dockerfile:experimental
|
|
# Interim container so we can copy pulumi binaries
|
|
# Must be defined first
|
|
ARG PULUMI_VERSION=latest
|
|
ARG PULUMI_IMAGE=pulumi/pulumi-base
|
|
ARG RUNTIME_VERSION="3.1"
|
|
FROM ${PULUMI_IMAGE}:${PULUMI_VERSION}-alpine as pulumi
|
|
|
|
# The runtime container
|
|
FROM mcr.microsoft.com/dotnet/core/sdk:${RUNTIME_VERSION}-alpine3.12
|
|
WORKDIR /pulumi/projects
|
|
|
|
# We need to install ca certs before copying the ms prod debs packages
|
|
RUN apk update && \
|
|
apk upgrade && \
|
|
apk add \
|
|
ca-certificates \
|
|
git \
|
|
libc6-compat
|
|
|
|
# Uses the workdir, copies from pulumi interim container
|
|
COPY --from=pulumi /pulumi/bin/pulumi /pulumi/bin/pulumi
|
|
COPY --from=pulumi /pulumi/bin/*-dotnet* /pulumi/bin/
|
|
ENV PATH "/pulumi/bin:${PATH}"
|
|
|
|
CMD ["pulumi"]
|