File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,12 +21,17 @@ RUN pip install --upgrade pip && pip install --user -r requirements.txt
2121# most of the time only this image should be built
2222# ---------------------------------------------------
2323FROM python:3.8-slim-bullseye
24+ # setup optional testing repo for newer packages
25+ COPY docker-files/testing.list /etc/apt/sources.list.d/
26+ COPY docker-files/testing.prefs /etc/apt/preferences.d/
2427# update apt
2528RUN apt-get update
2629# bash is needed for ./start/sh script
2730RUN apt-get -y install curl
2831# needed for rookout
2932RUN apt-get -y install --fix-missing gcc g++ python3-dev
33+ # install newer pcre2 to resolve CVE-2022-1586
34+ RUN apt-get -y install -t testing libpcre2-8-0
3035# copy opa from official image (main binary and lib for web assembly)
3136RUN curl -L -o /opa https://openpolicyagent.org/downloads/latest/opa_linux_amd64_static && chmod 755 /opa
3237# copy libraries from build stage
@@ -75,4 +80,4 @@ EXPOSE 7000
7580# expose opa directly
7681EXPOSE 8181
7782# run gunicorn
78- CMD ["/start.sh" ]
83+ CMD ["/start.sh" ]
Original file line number Diff line number Diff line change 1+ deb http://deb.debian.org/debian bookworm main
Original file line number Diff line number Diff line change 1+ # 100 <= P < 500: causes a version to be installed unless there is a
2+ # version available belonging to some other distribution or the installed
3+ # version is more recent
4+
5+ Package: *
6+ Pin: release a =testing
7+ Pin-Priority: 400
You can’t perform that action at this time.
0 commit comments