HUB
Sign inSign up

bbvacib/rhel7-atomic-glusterc-node8

By bbvacib

•Updated over 9 years ago

Redhat 7 atomic with dependencies of glusterfs client and Node.js 8

Image
0

169

bbvacib/rhel7-atomic-glusterc-node8 repository overview

FROM nova/rhel7-atomic-glusterc:1.0.0

⁠Host where the static files will be served from.

⁠NOTE: localhost and 127.0.0.1 won't work. Use the host real IP.

ARG CURL_HOST=20.1.67.21

⁠Node.js is downloaded from https://nodejs.org/download/release/⁠.

⁠Defaults to Node.js 6, pass a different version complete name to change it.

ARG NODE_VERSION=node-v7.10.0-linux-x64

⁠Label, including used Node.js version.

LABEL Description="Redhat 7 atomic with dependencies of glusterfs client and Node.js" Vendor="BBVA" Version="1.0.0" Node="${NODE_VERSION}"

MAINTAINER NOVA [email protected]⁠

⁠In order to run the build you need to create an HTTP server containing the files to copy into the image.

⁠See Instructions.txt.

⁠This is done to avoid unnecesary Docker image layers to create smaller images.

⁠Change the curl call to point to your local HTTP server .

⁠Configure Node.js for production: is mandatory.

ENV NODE_ENV=production

⁠Add Node.js to the path.

ENV PATH="$PATH:/opt/node/bin"

⁠Copy the tar file with the Node.js distribution.

⁠Easier but adds and extra layer to the container so it will be bigger.

⁠tar.gz files are not supported since plain rhel7-atomic doesn't have gzip binary.

#COPY ${NODE_VERSION}.tar /opt/${NODE_VERSION}.tar

⁠Install Node.js.

RUN cd /opt
&& curl -Ls http://${CURL_HOST}/${NODE_VERSION}.tar | tar -x
&& mv ${NODE_VERSION} node

Tag summary

Content type

Image

Digest

Size

54.7 MB

Last updated

over 9 years ago

docker pull bbvacib/rhel7-atomic-glusterc-node8:1.0.0