From 1abea1069ff3c3425c8eedf433d7cf82d136e252 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sat, 3 Aug 2024 08:45:49 +0000 Subject: [PATCH] fix: templates/python.dockerfile to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-ALPINE317-E2FSPROGS-3339842 - https://snyk.io/vuln/SNYK-ALPINE317-EXPAT-6241042 - https://snyk.io/vuln/SNYK-ALPINE317-NCURSES-5606599 - https://snyk.io/vuln/SNYK-ALPINE317-NCURSES-5606599 - https://snyk.io/vuln/SNYK-ALPINE317-SQLITE-6179510 --- templates/python.dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/python.dockerfile b/templates/python.dockerfile index 3d0f79a..a928347 100644 --- a/templates/python.dockerfile +++ b/templates/python.dockerfile @@ -1,11 +1,11 @@ -FROM python:3.12.0a2-alpine AS builder +FROM python:3.13.0rc1-alpine AS builder WORKDIR /usr/src/function/ ADD source.tar.gz /usr/src/function/ RUN python3 -m compileall -f -b /usr/src/function/ -FROM python:3.12.0a2-alpine AS runtime +FROM python:3.13.0rc1-alpine AS runtime COPY --from=builder /usr/src/function/*.pyc /usr/local/bin/function/ RUN chmod +x /usr/local/bin/function/*.pyc