feat: add convenience functions, update Docker setup, and integrate Webpack for building WebRTC internals exporter
Some checks failed
Build Docker Images for Pull Request / build (pull_request) Failing after 36s

This commit is contained in:
2025-02-19 21:56:14 +01:00
parent 84479c786a
commit d2cce68cf9
18 changed files with 9702 additions and 40 deletions

View File

@@ -1,19 +1,16 @@
FROM debian:bookworm-slim
# Install Python
RUN apt-get update && apt-get install -y python3 python3-pip python3-venv
# Install Python and curl
RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt \
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 +21,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