Last active
September 28, 2017 15:27
-
-
Save ultimateprogramer/f452a2cbd3d2cd64c7478b6c06e4c69a to your computer and use it in GitHub Desktop.
Dockerfile to install supervisor over Ubuntu Image
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 ubuntu:latest | |
MAINTAINER Ahmed Maawy | |
# Run updates | |
RUN apt-get update --fix-missing && apt-get install -y | |
# Install Curl | |
RUN apt-get install curl -y | |
# Install supervisor | |
RUN apt-get install python -y | |
RUN curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" | |
RUN python get-pip.py | |
RUN pip install supervisor | |
# Start the supervisor instance when the machine autostarts | |
RUN echo "supervisord -c /etc/supervisord.conf" >> /root/.bashrc | |
# Copy config file for Supervisor (Custom supervisord.conf) | |
COPY supervisord.conf /etc/supervisord.conf | |
# Run this if you need to create the supervisor config file template instead | |
# RUN echo_supervisord_conf > /etc/supervisord.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment