Update docker to use supervisor
Some checks failed
Lint / lint (push) Failing after 6s
release-tag / release-image (push) Has been cancelled

This commit is contained in:
Logan Cusano
2025-05-29 01:02:07 -04:00
parent 021f27d62e
commit 3086da0e2b
3 changed files with 27 additions and 22 deletions

View File

@@ -27,7 +27,8 @@ RUN apt-get update && \
libpulse-dev \
apulse \
ffmpeg \
liquidsoap
liquidsoap \
supervisor
# Clone the boatbod op25 repository
RUN git clone -b gr310 https://github.com/boatbod/op25 /op25
@@ -41,10 +42,6 @@ RUN ./install.sh -f
# Update the liquid file
COPY op25.liq /op25/op25.liq
# Enable the liquidsoap service
COPY op25-liq.service /etc/systemd/system
RUN systemctl enable op25-liq
# Install Python dependencies
COPY requirements.txt /tmp/requirements.txt
RUN pip3 install --no-cache-dir -r /tmp/requirements.txt
@@ -74,5 +71,8 @@ COPY ./app/internal/opus /app/internal/opus
# Copy the rest of the directory contents into the container at /app
COPY ./app /app
# Run the node script
ENTRYPOINT ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8001", "--reload"]
# Add Supervisord configuration
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# Modify the ENTRYPOINT to run Supervisord
ENTRYPOINT ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/conf.d/supervisord.conf"]