Created
January 30, 2018 18:37
-
-
Save murarisumit/1c0a3a1f7fda6ba43cb28761d809292e to your computer and use it in GitHub Desktop.
sample dockerfile
This file contains hidden or 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:0.10 | |
MAINTAINER Sumit Murari <[email protected]> | |
USER root | |
ENV AP /data/app | |
ENV SCPATH /etc/supervisor/conf.d | |
RUN apt-get -y update | |
# The daemons | |
RUN apt-get -y install supervisor | |
RUN mkdir -p /var/log/supervisor | |
#Supervisor Configuration | |
ADD ./supervisord/conf.d/* $SCPATH/ | |
#Application code | |
ADD *.js $AP/ | |
WORKDIR $AP | |
RUN npm install | |
CMD ["supervisord", "-n"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment