Skip to content

Instantly share code, notes, and snippets.

@stjohnjohnson
Created October 15, 2016 16:21
Show Gist options
  • Select an option

  • Save stjohnjohnson/08887767a4c76c035b6df865f75a9fce to your computer and use it in GitHub Desktop.

Select an option

Save stjohnjohnson/08887767a4c76c035b6df865f75a9fce to your computer and use it in GitHub Desktop.

Revisions

  1. stjohnjohnson created this gist Oct 15, 2016.
    18 changes: 18 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    FROM node:6

    # Create our application directory
    RUN mkdir -p /usr/src/app
    WORKDIR /usr/src/app

    # Install Screwdriver API
    COPY package.json /usr/src/app/
    RUN npm install --production

    # Copy everything else
    COPY . /usr/src/app

    # Expose the web service port
    EXPOSE 8080

    # Run the service
    CMD [ "npm", "start" ]