• Home
  • Health
  • Software
  • Blog
  • alpine

    Installing Alpine for Node

    Notes from work:

    docker pull node:14.21.0-alpine
    docker run -it node:14.21.0-alpine /bin/sh
    docker cp . <name>:/home/project # or something
    
    apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python
    python3 -m ensurepip
    pip3 install --no-cache --upgrade pip setuptools # for libs that use python
    
    apk add --no-cache make # for c++ libraries in nodejs
    apk add build-base # for c++