From bf33f8113d7f71c212c7ac546c7bdf91c74e620c Mon Sep 17 00:00:00 2001 From: joeduffy Date: Sun, 30 Sep 2018 07:49:52 -0700 Subject: [PATCH] Symlink node as nodejs On Debian, the Node.js binary is named `nodejs`, whereas all our scripts and tools assume `node`. This is a standard problem. To address it, add symlink. Also move other binaries under /usr/bin. --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d94295da2..4abca0fa3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,10 +40,11 @@ RUN apt-get install -y ca-certificates # Install the necessary runtimes. # - Node.js 10.x RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && \ - apt-get install -y nodejs build-essential + apt-get install -y nodejs build-essential && \ + ln -s `which nodejs` /usr/bin/node # Copy over the binaries built during the prior stage. -COPY --from=builder /opt/pulumi/* /usr/local/bin/ +COPY --from=builder /opt/pulumi/* /usr/bin/ # The app directory should contain the Pulumi program and is the pwd for the CLI. WORKDIR /app