Add convenience functions, update Docker setup, and integrate Webpack for building WebRTC internals exporter (#3)
All checks were successful
Build and Push Docker Image / build (push) Successful in 12m31s

Reviewed-on: #3
Co-authored-by: Mirko Milovanovic <mir_ko@me.com>
Co-committed-by: Mirko Milovanovic <mir_ko@me.com>
This commit is contained in:
2025-02-21 11:21:14 +00:00
committed by kobim
parent 84479c786a
commit 5c92020169
20 changed files with 9772 additions and 72 deletions

View File

@@ -1,19 +1,15 @@
FROM debian:bookworm-slim
# Install Python
RUN apt-get update && apt-get install -y python3 python3-pip python3-venv
# Install Python and curl
RUN apt-get update && apt-get install -y python3 python3-pip python3-venv curl
# Install dependencies with venv
# Create and activate a virtual environment
RUN python3 -m venv /app/venv
ENV PATH="/app/venv/bin:$PATH"
# Install dependencies with venv
COPY requirements.txt /app/requirements.txt
RUN /app/venv/bin/pip install --no-cache-dir -r /app/requirements.txt
# Install curl
RUN apt-get update && apt-get install -y curl
RUN /app/venv/bin/pip install -r /app/requirements.txt
# Copy the application
COPY main.py /app
@@ -24,4 +20,4 @@ WORKDIR /app
CMD ["/app/venv/bin/python", "main.py"]
# Healthcheck
HEALTHCHECK --interval=5s --timeout=10s --retries=5 CMD curl -f http://localhost/healthcheck || exit 1
HEALTHCHECK --interval=5s --timeout=10s --retries=5 --start-period=5s CMD curl -f http://localhost:9092/heartbeat || exit 1