Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
gobstoppers/nvm/Dockerfile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
19 lines (17 sloc)
846 Bytes
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
FROM kafebob/rpi-alpine-base:3.6 | |
LABEL maintainer="Luis Toubes <luis@toub.es>" | |
ENV NVM_VERSION=v0.33.6 NODE_VERSION=v8.9.0 ENV=/root/.ashrc | |
RUN apk add --update --no-cache curl bash \ | |
ca-certificates openssl coreutils && \ | |
apk add --update --no-cache --virtual build-dependencies ncurses python2 \ | |
make gcc g++ libgcc linux-headers && \ | |
cd /root && \ | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/$NVM_VERSION/install.sh | bash && \ | |
echo "#NVM Setup" >> $ENV && \ | |
echo 'export NVM_DIR="$HOME/.nvm"' >> $ENV && \ | |
echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm' >> $ENV && \ | |
source $ENV && \ | |
nvm install -s $NODE_VERSION --fully-static && \ | |
rm -rf /root/.nvm/.cache/src/node-$NODE_VERSION && \ | |
apk del build-dependencies && \ | |
rm -rf /tmp/* /var/cache/apk/* |