Skip to content
Myr

[readme] Fix a Docker warning from using Docker installation instructions

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix a LegacyKeyValueFormat warning when building a Docker image using the 'Installing In Docker' instructions. The warning fixed is: `LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format` See: [LegacyKeyValueFormat](https://docs.docker.com/reference/build-checks/legacy-key-value-format/)

authored by clifennel · committed by Jordan Harband · parent 5c05fb6 · Browse files · 2 files+5 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: clifennel <li.chr+github@northeastern.edu>
  • Co-authored-by: Jordan Harband <ljharb@gmail.com>

Diff stats

2 files+5 added−5 removed

  • other:+5 added−5 removed

2 files+5 added−5 removed

modified:Dockerfile+3 added-3 removed
13 unmodified lines
14# Set the SHELL to bash with pipefail option15SHELL ["/bin/bash", "-o", "pipefail", "-c"]1617# Prevent dialog during apt install18ENV DEBIAN_FRONTEND noninteractive18ENV DEBIAN_FRONTEND=noninteractive1920# ShellCheck version21ENV SHELLCHECK_VERSION=0.7.02223# Pick a Ubuntu apt mirror site for better speed24# ref: https://launchpad.net/ubuntu/+archivemirrors25ENV UBUNTU_APT_SITE ubuntu.cs.utah.edu25ENV UBUNTU_APT_SITE=ubuntu.cs.utah.edu2627# Replace origin apt package site with the mirror site28RUN sed -E -i "s/([a-z]+.)?archive.ubuntu.com/$UBUNTU_APT_SITE/g" /etc/apt/sources.list29RUN sed -i "s/security.ubuntu.com/$UBUNTU_APT_SITE/g" /etc/apt/sources.list
61 unmodified lines
91# Switch to user "nvm" from now92USER nvm9394# Create a script file sourced by both interactive and non-interactive bash shells95ENV BASH_ENV /home/nvm/.bash_env95ENV BASH_ENV=/home/nvm/.bash_env96RUN touch "$BASH_ENV"97RUN echo '. "$BASH_ENV"' >> "$HOME/.bashrc"9899# nvm
13 unmodified lines
modified:README.md+2 added-2 removed
146 unmodified lines
147# Use bash for the shell148SHELL ["/bin/bash", "-o", "pipefail", "-c"]149150# Create a script file sourced by both interactive and non-interactive bash shells151ENV BASH_ENV "${HOME}/.bash_env"151ENV BASH_ENV="${HOME:-/root}/.bash_env"152RUN touch "${BASH_ENV}"153RUN echo '. "${BASH_ENV}"' >> ~/.bashrc154155# Download and install nvm
17 unmodified lines
173# install nvm174RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.8/install.sh | bash175176# set env177ENV NVM_DIR=/root/.nvm177ENV NVM_DIR="${HOME:-/root}/.nvm"178179# install node180RUN bash -c "source $NVM_DIR/nvm.sh && nvm install $NODE_VERSION"181
1078 unmodified lines