This repository was archived by the owner on Apr 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +28
-20
lines changed Expand file tree Collapse file tree 4 files changed +28
-20
lines changed Original file line number Diff line number Diff line change
1
+ Ensure that the docker container has up to date versions of openssl.
Original file line number Diff line number Diff line change
1
+ Enforce that `cryptography` dependency is up to date to ensure it has the most recent openssl patches.
Original file line number Diff line number Diff line change @@ -20,17 +20,18 @@ FROM docker.io/python:${PYTHON_VERSION}-slim as builder
20
20
21
21
# install the OS build deps
22
22
RUN apt-get update && apt-get install -y \
23
- build-essential \
24
- libffi-dev \
25
- libjpeg-dev \
26
- libpq-dev \
27
- libssl-dev \
28
- libwebp-dev \
29
- libxml++2.6-dev \
30
- libxslt1-dev \
31
- rustc \
32
- zlib1g-dev \
33
- && rm -rf /var/lib/apt/lists/*
23
+ build-essential \
24
+ libffi-dev \
25
+ libjpeg-dev \
26
+ libpq-dev \
27
+ libssl-dev \
28
+ libwebp-dev \
29
+ libxml++2.6-dev \
30
+ libxslt1-dev \
31
+ openssl \
32
+ rustc \
33
+ zlib1g-dev \
34
+ && rm -rf /var/lib/apt/lists/*
34
35
35
36
# Build dependencies that are not available as wheels, to speed up rebuilds
36
37
RUN pip install --prefix="/install" --no-warn-script-location \
@@ -63,14 +64,16 @@ RUN pip install --prefix="/install" --no-warn-script-location \
63
64
FROM docker.io/python:${PYTHON_VERSION}-slim
64
65
65
66
RUN apt-get update && apt-get install -y \
66
- curl \
67
- gosu \
68
- libjpeg62-turbo \
69
- libpq5 \
70
- libwebp6 \
71
- xmlsec1 \
72
- libjemalloc2 \
73
- && rm -rf /var/lib/apt/lists/*
67
+ curl \
68
+ gosu \
69
+ libjpeg62-turbo \
70
+ libpq5 \
71
+ libwebp6 \
72
+ xmlsec1 \
73
+ libjemalloc2 \
74
+ libssl-dev \
75
+ openssl \
76
+ && rm -rf /var/lib/apt/lists/*
74
77
75
78
COPY --from=builder /install /usr/local
76
79
COPY ./docker/start.py /start.py
@@ -83,4 +86,4 @@ EXPOSE 8008/tcp 8009/tcp 8448/tcp
83
86
ENTRYPOINT ["/start.py" ]
84
87
85
88
HEALTHCHECK --interval=1m --timeout=5s \
86
- CMD curl -fSs http://localhost:8008/health || exit 1
89
+ CMD curl -fSs http://localhost:8008/health || exit 1
Original file line number Diff line number Diff line change 82
82
"Jinja2>=2.9" ,
83
83
"bleach>=1.4.3" ,
84
84
"typing-extensions>=3.7.4" ,
85
+ # We enforce that we have a `cryptography` version that bundles an `openssl`
86
+ # with the latest security patches.
87
+ "cryptography>=3.4.7;python_version>='3.6'" ,
85
88
]
86
89
87
90
CONDITIONAL_REQUIREMENTS = {
You can’t perform that action at this time.
0 commit comments