Skip to content

Instantly share code, notes, and snippets.

@stpettersens
Last active July 20, 2017 14:06
Show Gist options
  • Save stpettersens/5f0fd387e9bef21f68158ca41110f708 to your computer and use it in GitHub Desktop.
Save stpettersens/5f0fd387e9bef21f68158ca41110f708 to your computer and use it in GitHub Desktop.
Dockerfile for a Node.js-based application; based on @phusion 's base-image.
#
# Dockerfile for a Node.js-based application; derived from @phusion's container
# (Docker optimized Ubuntu 16.04 LTS system phusion/base-image:latest container
# - https://github.com/phusion/baseimage-docker/blob/master/image/Dockerfile).
#
# saintpettersens/docker-nodejs
#
FROM phusion/baseimage:latest
# Maintainer of this project.
MAINTAINER Sam Saint-Pettersen <s.stpettersen+github@gmail.com>
# Install Node.js.
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN apt-get update && apt-get install -y nodejs
RUN echo "node $(node --version)" && echo "npm $(npm --version)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment