Skip to content

Instantly share code, notes, and snippets.

@aviadhahami
Created July 5, 2023 22:37
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aviadhahami/910b7f51f9fd53b4a3624f888b2981c9 to your computer and use it in GitHub Desktop.
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 πŸ‘
# 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