Commit e27eb55d authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Strip files and libs to make image smaller.

parent b30be7cb
Pipeline #37285 failed with stages
in 3 minutes and 54 seconds
......@@ -48,6 +48,10 @@ COPY . /install
RUN pip install .
WORKDIR /install/docs
RUN make html
RUN \
find /usr/local/lib/python3.6/ -name 'tests' -exec rm -r '{}' + && \
find /usr/local/lib/python3.6/ -name 'test' -exec rm -r '{}' + && \
find /usr/local/lib/python3.6/site-packages/ -name '*.so' -print -exec sh -c 'file "{}" | grep -q "not stripped" && strip -s "{}"' \;
# Second, create a slim final image
FROM final
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment