Sign inSign up

nqkphuong/node

By nqkphuong

Updated over 8 years ago

A custom build of the public node:onbuild with an attempt to reduce the image size.

Image
0

319

nqkphuong/node repository overview

The full script is almost based on node:onbuild, only a minor change on the 1st line.

FROM node:9.8.0-alpine

RUN mkdir -p /usr/src/app WORKDIR /usr/src/app

ONBUILD ARG NODE_ENV ONBUILD ENV NODE_ENV $NODE_ENV ONBUILD COPY package.json /usr/src/app/ ONBUILD RUN npm install && npm cache clean --force ONBUILD COPY . /usr/src/app

CMD [ "npm", "start" ]

Tag summary

Content type

Image

Digest

Size

27.5 MB

Last updated

over 8 years ago

docker pull nqkphuong/node:9.8.0-alpine-serve-onbuild