Browse Source

add simple_nodejs dockerfile

master
Markus Bergholz 3 years ago
parent
commit
359ee31c16
1 changed files with 18 additions and 0 deletions
  1. +18
    -0
      docker/simple_nodejs/Dockerfile

+ 18
- 0
docker/simple_nodejs/Dockerfile View File

@ -0,0 +1,18 @@
FROM alpine:3.7
ENV VERSION=v9.4.0
RUN apk --update --no-cache add \
alpine-sdk \
python xz linux-headers
RUN curl -sfSLO https://nodejs.org/dist/${VERSION}/node-${VERSION}.tar.xz && \
tar -xf node-${VERSION}.tar.xz && \
cd node-${VERSION} && \
./configure --prefix=/usr ${CONFIG_FLAGS} && \
make -j$(getconf _NPROCESSORS_ONLN) && \
make install && \
cd .. && rm -rf node-${VERSION}.tar.xz && rm -rf node-${VERSION}
RUN apk del alpine-sdk \
python xz linux-headers

Loading…
Cancel
Save