Skip to content

Commit

Permalink
[Snyk] Security upgrade python from slim-bullseye to 3.13.0a2-slim (#75)
Browse files Browse the repository at this point in the history
* fix: backend-py/Dockerfile to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-DEBIAN11-DB53-2825168
- https://snyk.io/vuln/SNYK-DEBIAN11-GLIBC-521063
- https://snyk.io/vuln/SNYK-DEBIAN11-GLIBC-521063
- https://snyk.io/vuln/SNYK-DEBIAN11-SQLITE3-6139925
- https://snyk.io/vuln/SNYK-DEBIAN11-ZLIB-6008961

* Update python builder to bookworm

* Upgrade base to bookworm

---------

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Co-authored-by: Derek Roberts <derek.roberts@gmail.com>
  • Loading branch information
3 people authored Jan 12, 2024
1 parent 99ed652 commit df6fb3f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backend-py/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:bullseye AS build
FROM python:bookworm AS build

# Disable cache dir, disable upgrade message, create .venv in project dir
ARG PIP_NO_CACHE_DIR=off \
Expand All @@ -8,11 +8,11 @@ ARG PIP_NO_CACHE_DIR=off \
# Install poetry, then dependencies
WORKDIR /app
COPY pyproject.toml poetry.lock ./
RUN pip install poetry==1.6.1 && \
poetry install --no-root -vvv --without dev --sync
RUN pip install poetry==1.6.1
RUN poetry install --no-root -vvv --without dev --sync

# Deploy
FROM python:slim-bullseye AS deploy
FROM python:slim-bookworm AS deploy

# Output to stdout/stderr, don't create .pyc files, etc.
ENV PYTHONUNBUFFERED=1 \
Expand Down

0 comments on commit df6fb3f

Please sign in to comment.