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
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:
12
Dockerfile
12
Dockerfile
@@ -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
|
Reference in New Issue
Block a user