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
All checks were successful
Build Docker Images for Pull Request / build (pull_request) Successful in 16m45s
This commit is contained in:
@@ -23,9 +23,8 @@ WORKDIR /tmp
|
||||
RUN wget -q https://repos.influxdata.com/influxdata-archive_compat.key && \
|
||||
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 && \
|
||||
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
|
||||
|
||||
RUN sudo apt-get update && sudo apt-get install -y telegraf
|
||||
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
|
||||
|
||||
# Create and activate a virtual environment
|
||||
RUN python3 -m venv ./venv
|
||||
@@ -35,7 +34,7 @@ ENV PATH="/tmp/venv/bin:$PATH"
|
||||
COPY requirements.txt ./requirements.txt
|
||||
RUN ./venv/bin/pip install -r ./requirements.txt
|
||||
|
||||
# Copy the application
|
||||
# Copy files
|
||||
COPY main.py .
|
||||
COPY utils/ ./utils
|
||||
COPY telegraf.conf ./telegraf.conf
|
||||
|
Reference in New Issue
Block a user