Skip to content

Commit 5bdd21b

Browse files
committed
light/Dockerfile: patch
CVE-2025-49844
1 parent 7512d7f commit 5bdd21b

File tree

1 file changed

+43
-53
lines changed

1 file changed

+43
-53
lines changed

docker/light/Dockerfile

Lines changed: 43 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -10,67 +10,57 @@ ENV SLIPS_DIR=/StratosphereLinuxIPS
1010
SHELL ["/bin/bash", "-c"]
1111

1212
# Install wget and add Zeek and redis repositories to our sources.
13-
RUN apt update && apt install -y --no-install-recommends \
14-
wget \
15-
ca-certificates \
16-
git \
17-
curl \
18-
gnupg \
19-
lsb-release \
20-
software-properties-common \
21-
build-essential \
22-
file \
23-
lsof \
24-
iproute2 \
25-
tshark \
26-
whois \
27-
yara \
28-
net-tools \
29-
less \
30-
unzip \
31-
python3-certifi \
32-
python3-dev \
33-
python3-tzlocal \
34-
python3-pip \
35-
&& echo 'deb http://download.opensuse.org/repositories/security:/zeek/xUbuntu_22.04/ /' | tee /etc/apt/sources.list.d/security:zeek.list \
36-
&& curl -fsSL https://download.opensuse.org/repositories/security:zeek/xUbuntu_22.04/Release.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/security_zeek.gpg > /dev/null \
37-
&& curl -fsSL https://packages.redis.io/gpg | gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg \
38-
&& echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" > /etc/apt/sources.list.d/redis.list \
39-
&& apt update \
40-
&& apt install -y --no-install-recommends --fix-missing \
41-
zeek \
42-
redis \
13+
# set -eux for safer builds (stop on error, show commands)
14+
RUN set -eux; \
15+
apt-get update && apt-get install -y --no-install-recommends \
16+
ca-certificates gnupg wget curl \
17+
&& apt-get update && apt-get install -y --no-install-recommends \
18+
git lsb-release software-properties-common \
19+
build-essential file lsof iproute2 tshark whois yara net-tools less unzip \
20+
python3-certifi python3-dev python3-tzlocal python3-pip \
21+
&& curl -O https://download.redis.io/redis-stable.tar.gz \
22+
&& tar xzf redis-stable.tar.gz \
23+
&& cd redis-stable \
24+
&& make distclean && make MALLOC=libc \
25+
&& cd .. && rm -rf redis-stable.tar.gz \
26+
&& echo 'deb http://download.opensuse.org/repositories/security:/zeek/xUbuntu_22.04/ /' \
27+
| tee /etc/apt/sources.list.d/security:zeek.list \
28+
&& curl -fsSL https://download.opensuse.org/repositories/security:zeek/xUbuntu_22.04/Release.key \
29+
| gpg --dearmor | tee /etc/apt/trusted.gpg.d/security_zeek.gpg > /dev/null \
30+
&& apt-get update && apt-get install -y --no-install-recommends --fix-missing zeek \
4331
&& ln -s /opt/zeek/bin/zeek /usr/local/bin/bro \
44-
&& apt clean \
32+
&& apt-get clean \
4533
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
4634

35+
ENV PATH="$PATH:/redis-stable/src"
36+
4737
COPY . ${SLIPS_DIR}
4838

4939
WORKDIR ${SLIPS_DIR}
5040

5141
RUN cd modules \
52-
&& rm -rf \
53-
rnn_cc_detection/ \
54-
timeline/ \
55-
kalipso/ \
56-
p2ptrust/ \
57-
flowmldetection/ \
58-
cyst/ \
59-
cesnet/ \
60-
exporting_alerts/ \
61-
riskiq/ \
62-
template/ \
63-
blocking/ \
64-
virustotal/ \
65-
&& cd .. \
66-
&& rm -rf dataset/ docs/ tests/ \
67-
&& rm kalipso.sh \
68-
package.json \
69-
pytest.ini \
70-
webinterface.sh \
71-
CITATION.cff \
72-
CHANGELOG.md \
73-
conftest.py
42+
&& rm -rf \
43+
rnn_cc_detection/ \
44+
timeline/ \
45+
kalipso/ \
46+
p2ptrust/ \
47+
flowmldetection/ \
48+
cyst/ \
49+
cesnet/ \
50+
exporting_alerts/ \
51+
riskiq/ \
52+
template/ \
53+
blocking/ \
54+
virustotal/ \
55+
&& cd .. \
56+
&& rm -rf dataset/ docs/ tests/ \
57+
&& rm kalipso.sh \
58+
package.json \
59+
pytest.ini \
60+
webinterface.sh \
61+
CITATION.cff \
62+
CHANGELOG.md \
63+
conftest.py
7464

7565
RUN pip3 install --no-cache-dir --upgrade pip \
7666
&& grep -v -f docker/light/excluded_libs.txt install/requirements.txt | xargs -n 1 pip install \

0 commit comments

Comments
 (0)