Skip to content
This repository has been archived by the owner on Apr 27, 2018. It is now read-only.

Commit

Permalink
Added dockerfile that installs sails, pm2 and creates the server folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
Globegitter committed Oct 1, 2014
0 parents commit cc3654e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
############################################################
# Dockerfile to that builds on top of nginx to run
# a sails app with PM2
############################################################


FROM dockerfile/nodejs

MAINTAINER Markus Padourek <markus@artificial.io>

RUN npm install -g pm2 sails grunt bower
RUN mkdir /server

#installs nginx to /usr/sbin/nginx
#conf file is at /etc/nginx/nginx.conf

# Define mountable directories.
VOLUME ["/server/"]

# Define working directory.
WORKDIR /server

# Define default command.
#CMD ["pm2"]

# Expose ports.
EXPOSE 1337
EXPOSE 3000

0 comments on commit cc3654e

Please sign in to comment.