Remove pip after installation

pull/99/head
Stefano Ortolani 2024-07-19 11:30:36 +01:00
parent a128f24247
commit 0b5dd32b65
4 changed files with 8 additions and 6 deletions

View File

@ -149,7 +149,7 @@ EOF
done;
pip wheel --no-cache-dir -w /wheels/ -r /var/www/MISP/requirements.txt
# Remove files we do not care for
rm -r /var/www/MISP/PyMISP
find /var/www/MISP/INSTALL/* ! -name 'MYSQL.sql' -type f -exec rm {} +
@ -210,6 +210,7 @@ FROM php-base
# Install python modules
COPY --from=python-build /wheels /wheels
RUN pip install --no-cache-dir /wheels/*.whl && rm -rf /wheels
RUN pip uninstall -y pip
# PHP: install prebuilt libraries, then install the app's PHP deps
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}/"]

View File

@ -77,6 +77,7 @@ FROM "${DOCKER_HUB_PROXY}python:3.12-slim-bookworm"
COPY --from=python-build /usr/local/lib/libfaupl* /usr/local/lib/
RUN ldconfig
RUN pip install --no-cache-dir --use-deprecated=legacy-resolver /wheels/*.whl && rm -rf /wheels
RUN pip uninstall -y pip
# Since we compile faup ourselves and lua is not required anymore, we can load our own library
# and skip the pre-compiled blob to improve compatibility with other architectures like ARM

View File

@ -77,7 +77,7 @@ crowdstrike-falconpy = "0.9.0"
censys = "2.0.9"
mwdblib = "3.4.1"
ndjson = "0.3.1"
Jinja2 = "3.1.2"
Jinja2 = ">=3.1.2"
mattermostdriver = "7.3.2"
openpyxl = "*"
slack-sdk = "3.27.1"

View File

@ -1,7 +1,7 @@
{
"_meta": {
"hash": {
"sha256": "fcdd3cc6061f631b719ebbf80e5f7fa1e7d6d1155a750d70ed163e06dd4ef7ce"
"sha256": "984b67b921f554bdb98d0d7470dd5888c8e951bb414030712996ffa26fcea10d"
},
"pipfile-spec": 6,
"requires": {
@ -832,12 +832,12 @@
},
"jinja2": {
"hashes": [
"sha256:31351a702a408a9e7595a8fc6150fc3f43bb6bf7e319770cbc0db9df9437e852",
"sha256:6088930bfe239f0e6710546ab9c19c9ef35e29792895fed6e6e31a023a182a61"
"sha256:4a3aee7acbbe7303aede8e9648d13b8bf88a429282aa6122a993f0ac800cb369",
"sha256:bc5dd2abb727a5319567b7a813e6a2e7318c39f4f487cfe6c89c6f9c7d25197d"
],
"index": "pypi",
"markers": "python_version >= '3.7'",
"version": "==3.1.2"
"version": "==3.1.4"
},
"json-log-formatter": {
"hashes": [