From f39e48652cd86410050b0f313e97cfab422a5e1f Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 29 Nov 2023 14:39:09 +0000 Subject: [PATCH] fix: Dockerfile to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-ALPINE318-BUSYBOX-5890990 - https://snyk.io/vuln/SNYK-ALPINE318-BUSYBOX-5890990 - https://snyk.io/vuln/SNYK-ALPINE318-BUSYBOX-5890990 - https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386 - https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index beab529..69bb492 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.12.0b1-alpine as builder +FROM python:3.13.0a1-alpine as builder COPY . /app WORKDIR /app RUN pip install flake8==3.8.4 @@ -7,7 +7,7 @@ RUN apk add --no-cache --virtual .build-deps gcc musl-dev libffi-dev openssl-dev RUN pip wheel . --no-cache-dir --wheel-dir /usr/src/app/wheels RUN apk del .build-deps gcc musl-dev -FROM python:3.12.0b1-alpine +FROM python:3.13.0a1-alpine ENV PYTHONUNBUFFERED 1 COPY --from=builder /usr/src/app/wheels /wheels RUN pip install --no-cache /wheels/* \