Container for alpine linux with nodejs and npm installed
10K+
FROM labdocker/alpine:latest
MAINTAINER Praparn Lueangphoonlap ([email protected])
LABEL Description="NodeJS/NGINX Build Container" Version="1.0"
ENV NODE_VERSION=v8.11.4 NPM_VERSION=5.6.0
RUN apk update &&
apk add nodejs nodejs-npm
RUN mkdir /nodejs
COPY hello.js /nodejs/
WORKDIR /nodejs
ENTRYPOINT ["node","hello.js"]
EXPOSE 3000
Example nodejs file is avaliable on nodejs/hello.js.
Please kindly run first web page for nodejs web server like command below:
docker run -dt --name alpineweb -p 3000:3000 labdocker/alpineweb node hello.js
Content type
Image
Digest
sha256:fb75fb05c…
Size
24.1 MB
Last updated
almost 3 years ago
docker pull labdocker/alpineweb