Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,12 @@ RUN apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/*
# shipped in everything we publish. A bind mount is never committed to a layer.
RUN --mount=type=bind,from=python-build,source=/wheels,target=/wheels \
pip install --no-cache-dir /wheels/*.whl

# Installation is complete. Keep pip and its vendored dependencies out of the
# runtime, including the bundled wheel that could reinstall them via ensurepip.
RUN python -m pip uninstall --yes pip && \
python -c 'import pathlib, shutil, sysconfig; shutil.rmtree(pathlib.Path(sysconfig.get_path("stdlib")) / "ensurepip")'

# PHP: install prebuilt libraries, then install the app's PHP deps
COPY --from=php-build /pecl_libs.tar.gz /
RUN tar -xzf /pecl_libs.tar.gz && rm /pecl_libs.tar.gz
Expand Down
5 changes: 5 additions & 0 deletions guard/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ EOF
RUN --mount=type=bind,from=python-build,source=/wheels,target=/wheels \
pip install --no-cache-dir /wheels/*.whl

# Installation is complete. Keep pip and its vendored dependencies out of the
# runtime, including the bundled wheel that could reinstall them via ensurepip.
RUN python -m pip uninstall --yes pip && \
python -c 'import pathlib, shutil, sysconfig; shutil.rmtree(pathlib.Path(sysconfig.get_path("stdlib")) / "ensurepip")'

COPY --from=python-build /srv /srv
COPY files/ /

Expand Down
5 changes: 5 additions & 0 deletions modules/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ RUN groupadd -g "${MISP_GID}" misp && \
RUN --mount=type=bind,from=python-build,source=/wheels,target=/wheels \
pip install --no-cache-dir /wheels/*.whl

# Installation is complete. Keep pip and its vendored dependencies out of the
# runtime, including the bundled wheel that could reinstall them via ensurepip.
RUN python -m pip uninstall --yes pip && \
python -c 'import pathlib, shutil, sysconfig; shutil.rmtree(pathlib.Path(sysconfig.get_path("stdlib")) / "ensurepip")'

RUN bash -c 'mkdir -p /custom/{action_mod,expansion,export_mod,import_mod} && chown -R misp:misp /custom'

USER misp
Expand Down
Loading