Skip to content

Commit

Permalink
Pulled the libpcre2-8-0 package from Debian Testing to resolve CVE-20…
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaul Kremer committed Jun 22, 2022
1 parent 155ecf7 commit 0ba9194
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,17 @@ RUN pip install --upgrade pip && pip install --user -r requirements.txt
# most of the time only this image should be built
# ---------------------------------------------------
FROM python:3.8-slim-bullseye
# setup optional testing repo for newer packages
COPY docker-files/testing.list /etc/apt/sources.list.d/
COPY docker-files/testing.prefs /etc/apt/preferences.d/
# update apt
RUN apt-get update
# bash is needed for ./start/sh script
RUN apt-get -y install curl
# needed for rookout
RUN apt-get -y install --fix-missing gcc g++ python3-dev
# install newer pcre2 to resolve CVE-2022-1586
RUN apt-get -y install -t testing libpcre2-8-0
# copy opa from official image (main binary and lib for web assembly)
RUN curl -L -o /opa https://openpolicyagent.org/downloads/latest/opa_linux_amd64_static && chmod 755 /opa
# copy libraries from build stage
Expand Down Expand Up @@ -75,4 +80,4 @@ EXPOSE 7000
# expose opa directly
EXPOSE 8181
# run gunicorn
CMD ["/start.sh"]
CMD ["/start.sh"]
1 change: 1 addition & 0 deletions docker-files/testing.list
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
deb http://deb.debian.org/debian bookworm main
7 changes: 7 additions & 0 deletions docker-files/testing.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# 100 <= P < 500: causes a version to be installed unless there is a
# version available belonging to some other distribution or the installed
# version is more recent

Package: *
Pin: release a=testing
Pin-Priority: 400

0 comments on commit 0ba9194

Please sign in to comment.