Skip to content

Commit 0b5dd32

Browse files
committed
Remove pip after installation
1 parent a128f24 commit 0b5dd32

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

core/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ EOF
149149
done;
150150

151151
pip wheel --no-cache-dir -w /wheels/ -r /var/www/MISP/requirements.txt
152-
152+
153153
# Remove files we do not care for
154154
rm -r /var/www/MISP/PyMISP
155155
find /var/www/MISP/INSTALL/* ! -name 'MYSQL.sql' -type f -exec rm {} +
@@ -210,6 +210,7 @@ FROM php-base
210210
# Install python modules
211211
COPY --from=python-build /wheels /wheels
212212
RUN pip install --no-cache-dir /wheels/*.whl && rm -rf /wheels
213+
RUN pip uninstall -y pip
213214

214215
# PHP: install prebuilt libraries, then install the app's PHP deps
215216
COPY --from=php-build ["/usr/lib/php/${PHP_VER}/ssdeep.so", "/usr/lib/php/${PHP_VER}/rdkafka.so", "/usr/lib/php/${PHP_VER}/brotli.so", "/usr/lib/php/${PHP_VER}/simdjson.so", "/usr/lib/php/${PHP_VER}/zstd.so", "/usr/lib/php/${PHP_VER}/"]

modules/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ FROM "${DOCKER_HUB_PROXY}python:3.12-slim-bookworm"
7777
COPY --from=python-build /usr/local/lib/libfaupl* /usr/local/lib/
7878
RUN ldconfig
7979
RUN pip install --no-cache-dir --use-deprecated=legacy-resolver /wheels/*.whl && rm -rf /wheels
80+
RUN pip uninstall -y pip
8081

8182
# Since we compile faup ourselves and lua is not required anymore, we can load our own library
8283
# and skip the pre-compiled blob to improve compatibility with other architectures like ARM

modules/files/Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ crowdstrike-falconpy = "0.9.0"
7777
censys = "2.0.9"
7878
mwdblib = "3.4.1"
7979
ndjson = "0.3.1"
80-
Jinja2 = "3.1.2"
80+
Jinja2 = ">=3.1.2"
8181
mattermostdriver = "7.3.2"
8282
openpyxl = "*"
8383
slack-sdk = "3.27.1"

modules/files/Pipfile.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)