Skip to content
This repository was archived by the owner on Aug 4, 2023. It is now read-only.

godaddy/docker-node

CircleCI

docker-node

Linux Docker images for Node.js with best practices in mind:

  • proper signal-forwarding for su and sudo,
  • using unprivileged users for running apps.

Currently supported distributions:

  • Debian
  • Alpine

Usage

Dockerfile

FROM godaddy/node:8.9.4-debian

ENV NODE_ENV=production # or anything else

RUN mkdir /app
WORKDIR /app

COPY docker/.npmrc package.json package-lock.json /app/

RUN npm install

# Copy app to source directory
COPY docker/docker-entrypoint.sh /docker-entrypoint.sh
COPY . /app/

EXPOSE 8080
CMD ["gosu", "node", "npm", "start"]

Docker-entrypoint.sh

#!/bin/sh

# here you can customize how your app should start up
set -e

exec "$@"

Grabbing the images

To grab the images, visit our Docker Hub profile.

About

Debian Docker images for Node.js with best practices in mind

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •