Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (17 sloc) 846 Bytes
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/*