Created
July 5, 2023 22:37
-
-
Save aviadhahami/910b7f51f9fd53b4a3624f888b2981c9 to your computer and use it in GitHub Desktop.
Node 10 + Python 2.7 for old time crap; Also works as a devcontainer π
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set the base image to Debian | |
# https://hub.docker.com/_/debian/ | |
FROM debian:buster | |
# update the repository sources list | |
# and install dependencies | |
RUN apt-get update \ | |
&& apt-get install -y curl python2.7 git wget curl build-essential\ | |
&& apt-get -y autoclean | |
# Set python2.7 alias | |
RUN ln -s /usr/bin/python2.7 /usr/bin/python | |
ENV NVM_VERSION v0.33.11 | |
ENV NODE_VERSION v10 | |
ENV NVM_DIR /usr/local/nvm | |
RUN mkdir $NVM_DIR | |
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash | |
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules | |
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH | |
RUN echo "source $NVM_DIR/nvm.sh && \ | |
nvm install $NODE_VERSION && \ | |
nvm alias default $NODE_VERSION && \ | |
nvm use default" | bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment