forked from demisto/dockerfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (22 loc) · 903 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Last modified: 2023-06-19T09:14:53.643005+00:00
FROM python:3.9.17-alpine3.18
# Upgrade all packages to latest
RUN apk --update --no-cache upgrade
COPY localtime /etc/localtime
COPY requirements.txt .
RUN apk --update add --no-cache --virtual .build-dependencies python3-dev build-base wget git \
libffi-dev openssl-dev \
&& pip install --no-cache-dir -r requirements.txt \
&& apk del .build-dependencies
RUN addgroup -g 4000 demisto \
&& adduser -u 4000 -G demisto -D demisto -s /bin/sh
RUN cp /etc/ssl/openssl.cnf /etc/ssl/openssl.cnf.org && \
echo -e 'ssl_conf = ssl_sect\n\
[ssl_sect]\n\
system_default = system_default_sect\n\
\n\
[system_default_sect]\n\
Options = UnsafeLegacyRenegotiation\n' > /tmp/ssl.cnf \
&& sed -i '/providers = provider_sect/r /tmp/ssl.cnf' /etc/ssl/openssl.cnf \
&& rm /tmp/ssl.cnf \
&& grep -C 10 'Options = UnsafeLegacyRenegotiation' /etc/ssl/openssl.cnf