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.
This commit is contained in:
joeduffy 2018-09-30 07:49:52 -07:00
parent 61662d2e5f
commit bf33f8113d

View file

@ -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