Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
fix: Dockerfile to reduce vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
snyk-bot committed Jan 5, 2023
1 parent 72ecab3 commit 88d2657
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12.0a2-alpine as builder
FROM python:3.12.0a1-alpine as builder
COPY . /app
WORKDIR /app
RUN pip install flake8==3.8.4
Expand All @@ -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.0a2-alpine
FROM python:3.12.0a1-alpine
ENV PYTHONUNBUFFERED 1
COPY --from=builder /usr/src/app/wheels /wheels
RUN pip install --no-cache /wheels/* \
Expand Down

0 comments on commit 88d2657

Please sign in to comment.