Created
April 28, 2016 17:50
-
-
Save pranavrajs/07706960f7d16f154477a5cab241d9fe to your computer and use it in GitHub Desktop.
Dockerfile sails application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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