Skip to content

Instantly share code, notes, and snippets.

@lukin0110
Created May 2, 2016 13:39
Show Gist options
  • Select an option

  • Save lukin0110/5b1230ef8e2f85c6866b4e050c24704e to your computer and use it in GitHub Desktop.

Select an option

Save lukin0110/5b1230ef8e2f85c6866b4e050c24704e to your computer and use it in GitHub Desktop.

Revisions

  1. lukin0110 created this gist May 2, 2016.
    26 changes: 26 additions & 0 deletions docker-alpine-node
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    # TriFlux Alpine Development Container
    #
    # Alpine Node Party: https://github.com/mhart/alpine-node
    #
    # VERSION 0.0.1
    FROM mhart/alpine-node:5

    ENV PORT 5001
    ENV NODE_ENV development

    # Create app directory
    RUN mkdir -p /triflux
    WORKDIR /triflux

    # Install bash & git
    RUN apk add --update bash git python make g++ && rm -rf /var/cache/apk/*

    # Install app dependencies
    COPY package.json /triflux
    RUN npm install && npm dedupe

    # Add the source Luke!
    ADD . /triflux/

    CMD ["npm", "start"]