Skip to content

Instantly share code, notes, and snippets.

@franrios
Created April 9, 2016 14:46
Show Gist options
  • Save franrios/99dbfe13d5a9d6d5e6831bb6c0275857 to your computer and use it in GitHub Desktop.
Save franrios/99dbfe13d5a9d6d5e6831bb6c0275857 to your computer and use it in GitHub Desktop.
FROM ubuntu:14.04
MAINTAINER Fran Rios [email protected]
# to avoid some problems:
# debconf: unable to initialize frontend: Dialog
ENV DEBIAN_FRONTEND noninteractive
# Install Nodejs...
RUN apt-get update && apt-get install -y nodejs npm
# Copy app to /src
COPY . /src
# Install app and dependencies into /src
RUN cd /src; npm install
#Show in our container
EXPOSE 8080
#Run the app
CMD cd /src && nodejs ./index.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment