Don't keep wheels we don't need

pull/1/head
Jason Kendall 2019-11-28 12:28:02 -05:00
parent 7a7f936391
commit 3f1117eee4
1 changed files with 9 additions and 9 deletions

View File

@ -90,15 +90,15 @@ ARG PHP_VER=20180731
cd /var/www/MISP/app; git submodule update --init --recursive .; cd /var/www/MISP/app; git submodule update --init --recursive .;
# Python Modules # Python Modules
COPY --from=python-build /tmp/PyMISP/dist/*.whl /tmp RUN mkdir /wheels
COPY --from=python-build /tmp/cti-python-stix2/dist/*.whl /tmp COPY --from=python-build /tmp/PyMISP/dist/*.whl /wheels
COPY --from=python-build /tmp/mixbox/dist/*.whl /tmp COPY --from=python-build /tmp/cti-python-stix2/dist/*.whl /wheels
COPY --from=python-build /tmp/python-cybox/dist/*.whl /tmp COPY --from=python-build /tmp/mixbox/dist/*.whl /wheels
COPY --from=python-build /tmp/python-maec/dist/*.whl /tmp COPY --from=python-build /tmp/python-cybox/dist/*.whl /wheels
COPY --from=python-build /tmp/python-stix/dist/*.whl /tmp COPY --from=python-build /tmp/python-maec/dist/*.whl /wheels
COPY --from=python-build /tmp/pydeep/dist/*.whl /tmp COPY --from=python-build /tmp/python-stix/dist/*.whl /wheels
COPY --from=python-build /tmp/pydeep/dist/*.whl /wheels
RUN pip3 install --no-cache-dir /tmp/*.whl plyara pyzmq redis python-magic lief RUN pip3 install --no-cache-dir /wheels/*.whl plyara pyzmq redis python-magic lief && rm -rf /wheels
# PHP # PHP
# Install ssdeep prebuild, latest composer, then install the app's PHP deps # Install ssdeep prebuild, latest composer, then install the app's PHP deps