Skip to content

Instantly share code, notes, and snippets.

@johndpope
Forked from ultimateprogramer/Dockerfile
Created September 28, 2017 15:27
Show Gist options
  • Save johndpope/9de4b92061b00efe7816808cabbf3b52 to your computer and use it in GitHub Desktop.
Save johndpope/9de4b92061b00efe7816808cabbf3b52 to your computer and use it in GitHub Desktop.
Dockerfile to install supervisor over Ubuntu Image
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
@He2lium
Copy link

He2lium commented Dec 17, 2021

Thx, you have helped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment