Skip to content

Instantly share code, notes, and snippets.

@pranavrajs
Created April 28, 2016 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pranavrajs/07706960f7d16f154477a5cab241d9fe to your computer and use it in GitHub Desktop.
Save pranavrajs/07706960f7d16f154477a5cab241d9fe to your computer and use it in GitHub Desktop.
Dockerfile sails application
FROM node:argon
# Install Sails globally
RUN npm install -g sails
# Create app directory
RUN mkdir -p /app
# Change Work directory to app
WORKDIR /app
# Install app dependencies
COPY package.json /app/
RUN npm install
# Bundle app source
COPY . /app
EXPOSE 1337
CMD ["sails", "lift"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment