Files
peertube-collector/Dockerfile
Mirko Milovanovic 3c59c3e927
Some checks failed
Build Docker Images for Pull Request / build (pull_request) Failing after 4m8s
feat: add convenience functions, update Docker setup, and integrate Webpack for building WebRTC internals exporter
2025-02-19 22:03:30 +01:00

23 lines
650 B
Docker

FROM debian:bookworm-slim
# Install Python and curl
RUN apt-get update && apt-get install -y python3 python3-pip python3-venv curl
# 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 -r /app/requirements.txt
# Copy the application
COPY main.py /app
COPY utils/ /app/utils
WORKDIR /app
# Run the application
CMD ["/app/venv/bin/python", "main.py"]
# Healthcheck
HEALTHCHECK --interval=5s --timeout=10s --retries=5 --start-period=5s CMD curl -f http://localhost:9092/heartbeat || exit 1