From 36b4b72beaaff6dc6abf3670507d04da1e7f574e Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 20 Sep 2023 17:35:16 +0000 Subject: [PATCH] fix: Dockerfile to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-ALPINE316-E2FSPROGS-3339843 - https://snyk.io/vuln/SNYK-ALPINE316-KRB5-3136432 - https://snyk.io/vuln/SNYK-ALPINE316-NCURSES-5606597 - https://snyk.io/vuln/SNYK-ALPINE316-NCURSES-5606597 - https://snyk.io/vuln/SNYK-ALPINE316-OPENSSL-3314624 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2d7263b..5656696 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ -FROM python:3.12.0a1-alpine as builder +FROM python:3.12.0rc2-alpine as builder COPY . /app WORKDIR /app RUN pip install flake8==3.8.4 RUN flake8 --ignore=E501,F401,W605 . RUN pip wheel . --no-cache-dir --wheel-dir /usr/src/app/wheels -FROM python:3.12.0a1-alpine +FROM python:3.12.0rc2-alpine ENV PYTHONUNBUFFERED 1 COPY --from=builder /usr/src/app/wheels /wheels RUN pip install --no-cache /wheels/* \