Skip to content

Instantly share code, notes, and snippets.

@murarisumit
Created January 30, 2018 18:37
Show Gist options
  • Save murarisumit/1c0a3a1f7fda6ba43cb28761d809292e to your computer and use it in GitHub Desktop.
Save murarisumit/1c0a3a1f7fda6ba43cb28761d809292e to your computer and use it in GitHub Desktop.
sample dockerfile
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