pulumi/docker/nodejs/Dockerfile.ubi
Lee Briggs d771cdd3a1
add missing dependency mgmt tools
the docker images were missing pipenv and yarn, so adding them
2020-06-18 10:18:28 -07:00

29 lines
796 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
FROM ${PULUMI_IMAGE}:${PULUMI_VERSION} as pulumi
# The runtime container
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
WORKDIR /pulumi/projects
COPY dnf/nodejs.module /etc/dnf/modules.d/nodejs.module
# Install needed tools, like git
RUN --mount=target=/var/cache/yum,type=cache \
microdnf install -y \
git \
tar \
nodejs \
ca-certificates && \
npm install -g yarn
# Uses the workdir, copies from pulumi interim container
COPY --from=pulumi /pulumi/bin/pulumi /pulumi/bin/pulumi
COPY --from=pulumi /pulumi/bin/*-nodejs* /pulumi/bin/
ENV PATH "/pulumi/bin:${PATH}"
CMD ["pulumi"]