From 58dfcb7d87f113a9292578e1ddd791aa9982cf8e Mon Sep 17 00:00:00 2001 From: Matteias Collet Date: Sat, 30 Jan 2021 18:55:58 +0100 Subject: [PATCH] Delete base.Dockerfile --- .devcontainer/base.Dockerfile | 46 ----------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 .devcontainer/base.Dockerfile diff --git a/.devcontainer/base.Dockerfile b/.devcontainer/base.Dockerfile deleted file mode 100644 index 60a655d..0000000 --- a/.devcontainer/base.Dockerfile +++ /dev/null @@ -1,46 +0,0 @@ -# Update the VARIANT arg in devcontainer.json to pick a Node.js version: 14, 12, 10 -ARG VARIANT=12 -FROM node:${VARIANT} - -# Options for setup scripts -ARG INSTALL_ZSH="true" -ARG UPGRADE_PACKAGES="true" -ARG USERNAME=node -ARG USER_UID=1000 -ARG USER_GID=$USER_UID - -ENV NVM_DIR=/usr/local/share/nvm -ENV NVM_SYMLINK_CURRENT=true \ - PATH=${NVM_DIR}/current/bin:${PATH} - -# Install needed packages and setup non-root user. Use a separate RUN statement to add your own dependencies. -COPY library-scripts/*.sh /tmp/library-scripts/ -RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ - # Remove imagemagick due to https://security-tracker.debian.org/tracker/CVE-2019-10131 - && apt-get purge -y imagemagick imagemagick-6-common \ - # Install common packages, non-root user, update yarn and install nvm - && /bin/bash /tmp/library-scripts/common-debian.sh "${INSTALL_ZSH}" "${USERNAME}" "${USER_UID}" "${USER_GID}" "${UPGRADE_PACKAGES}" \ - && rm -rf /opt/yarn-* /usr/local/bin/yarn /usr/local/bin/yarnpkg \ - && /bin/bash /tmp/library-scripts/node-debian.sh "${NVM_DIR}" "none" "${USERNAME}" \ - && apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* /root/.gnupg /tmp/library-scripts - -# Configure global npm install location -ARG NPM_GLOBAL=/usr/local/share/npm-global -ENV PATH=${PATH}:${NPM_GLOBAL}/bin -RUN mkdir -p ${NPM_GLOBAL} \ - && chown ${USERNAME}:root ${NPM_GLOBAL} \ - && npm config -g set prefix ${NPM_GLOBAL} \ - && sudo -u ${USERNAME} npm config -g set prefix ${NPM_GLOBAL} \ - && echo "if [ \"\$(stat -c '%U' ${NPM_GLOBAL})\" != \"${USERNAME}\" ]; then sudo chown -R ${USER_UID}:root ${NPM_GLOBAL} ${NVM_DIR}; fi" \ - | tee -a /root/.bashrc /root/.zshrc /home/${USERNAME}/.bashrc >> /home/${USERNAME}/.zshrc - -# Install eslint globally -RUN sudo -u ${USERNAME} npm install -g eslint - -# [Optional] Uncomment this section to install additional OS packages. -# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ -# && apt-get -y install --no-install-recommends - -# [Optional] Uncomment if you want to install an additional version of node using nvm -# ARG EXTRA_NODE_VERSION=10 -# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}" \ No newline at end of file