Skip to content

Commit

Permalink
Another attempt to pickup proper node version
Browse files Browse the repository at this point in the history
  • Loading branch information
akolotov committed Sep 30, 2024
1 parent 7e10d43 commit 8ff0988
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG VARIANT="1.17.3-erlang-27.1-debian-bullseye-20240926"
ARG PHOENIX_VERSION="1.7.10"
ARG NODE_VERSION="18"
ARG NODEJS_VERSION="18"
FROM hexpm/elixir:${VARIANT}

# This Dockerfile adds a non-root user with sudo access. Update the “remoteUser” property in
Expand Down Expand Up @@ -31,10 +31,10 @@ RUN apt-get update \
&& /bin/bash /tmp/common-setup.sh "${INSTALL_ZSH}" "${USERNAME}" "${USER_UID}" "${USER_GID}" "${UPGRADE_PACKAGES}" \
#
# [Optional] Install Node.js for use with web applications
&& if [ "$NODE_VERSION" != "none" ]; then \
&& if [ "${NODEJS_VERSION}" != "none" ]; then \
curl -sSL ${NODE_SCRIPT_SOURCE} -o /tmp/node-setup.sh \
&& ([ "${NODE_SCRIPT_SHA}" = "dev-mode" ] || (echo "${NODE_SCRIPT_SHA} */tmp/node-setup.sh" | sha256sum -c -)) \
&& /bin/bash /tmp/node-setup.sh "${NVM_DIR}" ${NODE_VERSION} "${USERNAME}" \
&& /bin/bash /tmp/node-setup.sh "${NVM_DIR}" "${NODEJS_VERSION}" "${USERNAME}" \
&& npm install -g cspell@latest; \
fi \
#
Expand Down

0 comments on commit 8ff0988

Please sign in to comment.