feat: streamline Dockerfile and docker-compose configuration for improved build efficiency
All checks were successful
Build Docker Images for Pull Request / build (pull_request) Successful in 16m45s

This commit is contained in:
2025-02-20 21:13:02 +01:00
parent f7dfaafc59
commit 9ee391fee8
2 changed files with 3 additions and 7 deletions

View File

@@ -23,9 +23,8 @@ WORKDIR /tmp
RUN wget -q https://repos.influxdata.com/influxdata-archive_compat.key && \ RUN wget -q https://repos.influxdata.com/influxdata-archive_compat.key && \
echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c && \ echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c && \
cat influxdata-archive_compat.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg > /dev/null && \ cat influxdata-archive_compat.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg > /dev/null && \
echo 'deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main' | sudo tee /etc/apt/sources.list.d/influxdata.list echo 'deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main' | sudo tee /etc/apt/sources.list.d/influxdata.list && \
sudo apt-get update && sudo apt-get install -y telegraf
RUN sudo apt-get update && sudo apt-get install -y telegraf
# Create and activate a virtual environment # Create and activate a virtual environment
RUN python3 -m venv ./venv RUN python3 -m venv ./venv
@@ -35,7 +34,7 @@ ENV PATH="/tmp/venv/bin:$PATH"
COPY requirements.txt ./requirements.txt COPY requirements.txt ./requirements.txt
RUN ./venv/bin/pip install -r ./requirements.txt RUN ./venv/bin/pip install -r ./requirements.txt
# Copy the application # Copy files
COPY main.py . COPY main.py .
COPY utils/ ./utils COPY utils/ ./utils
COPY telegraf.conf ./telegraf.conf COPY telegraf.conf ./telegraf.conf

View File

@@ -6,9 +6,6 @@ services:
- build-extension:/tmp/webrtc-internals-exporter - build-extension:/tmp/webrtc-internals-exporter
shm_size: "2g" shm_size: "2g"
attach: false attach: false
depends_on:
telegraf:
condition: service_healthy
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4444/wd/hub/status"] test: ["CMD", "curl", "-f", "http://localhost:4444/wd/hub/status"]
interval: 5s interval: 5s