Skip to content

Commit

Permalink
Yet 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 8ff0988 commit 51d0cb8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
ARG VARIANT="1.17.3-erlang-27.1-debian-bullseye-20240926"
ARG PHOENIX_VERSION="1.7.10"
ARG NODEJS_VERSION="18"
FROM hexpm/elixir:${VARIANT}

ARG PHOENIX_VERSION="1.7.10"
ARG NODE_VERSION="18"

# This Dockerfile adds a non-root user with sudo access. Update the “remoteUser” property in
# devcontainer.json to use it. More info: https://aka.ms/vscode-remote/containers/non-root-user.
ARG USERNAME=vscode
Expand Down Expand Up @@ -31,10 +32,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 [ "${NODEJS_VERSION}" != "none" ]; then \
&& if [ "${NODE_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}" "${NODEJS_VERSION}" "${USERNAME}" \
&& /bin/bash /tmp/node-setup.sh "${NVM_DIR}" "${NODE_VERSION}" "${USERNAME}" \
&& npm install -g cspell@latest; \
fi \
#
Expand Down

0 comments on commit 51d0cb8

Please sign in to comment.