Skip to content

Commit

Permalink
Update Dockerfile to install Node.js via nvm
Browse files Browse the repository at this point in the history
The Dockerfile for the pulumi-operator-kubernetes-job has been updated. The 'npm' package was removed from the apt install command and Node.js is now installed using Node Version Manager (nvm). This provides better management and flexibility for different Node.js versions, ensuring our configuration stays up to date and consistent across environments.
  • Loading branch information
jan-br committed Sep 23, 2023
1 parent 09af387 commit 7d43cd6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pulumi-operator-kubernetes-job/Dockerfile
Expand Up @@ -2,7 +2,12 @@ FROM rust:1.71-buster as chef
WORKDIR /usr/src/pulumi-operator
USER root
ENV CARGO_HOME=/root/.cargo
RUN apt update && apt install -y curl python3-pip npm
RUN apt update && apt install -y curl python3-pip
SHELL ["/bin/bash", "--login", "-c"]

RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
RUN nvm install 17

RUN curl -fsSL https://get.pulumi.com | sh
ENV PATH="/root/.pulumi/bin:${PATH}"
RUN cargo install cargo-chef
Expand Down

0 comments on commit 7d43cd6

Please sign in to comment.