From 06d35784062f731a0508f078464726c4185ee271 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sun, 13 Oct 2024 05:50:05 +0000 Subject: [PATCH] fix: Dockerfile to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-DEBIAN11-E2FSPROGS-2628459 - https://snyk.io/vuln/SNYK-DEBIAN11-E2FSPROGS-2628459 - https://snyk.io/vuln/SNYK-DEBIAN11-E2FSPROGS-2628459 - https://snyk.io/vuln/SNYK-DEBIAN11-E2FSPROGS-2628459 - https://snyk.io/vuln/SNYK-DEBIAN11-E2FSPROGS-2628459 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 48f47d1..0320a68 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.11-slim-bullseye AS builder +FROM python:3.12.7-slim-bullseye AS builder RUN apt-get update; apt-get -y upgrade; apt-get clean; apt-get install binutils git -y # Default port @@ -13,7 +13,7 @@ WORKDIR /app RUN python3 -m PyInstaller main.py --onefile --hidden-import loguru --hidden-import prometheus_client --hidden-import PyP100 -FROM python:3.11-slim-bullseye +FROM python:3.12.7-slim-bullseye COPY --from=builder /app/dist /app/dist EXPOSE $PORT CMD /app/dist/main --tapo-email=$TAPO_EMAIL --tapo-password=$TAPO_PASSWORD --config-file=/app/tapo.yaml --prometheus-port=$PORT \ No newline at end of file