Skip to content

Commit

Permalink
fix: templates/python.dockerfile to reduce vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
snyk-bot committed Aug 3, 2024
1 parent 896bcd7 commit 1abea10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/python.dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 1abea10

Please sign in to comment.