File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -148,13 +148,7 @@ RUN \
148148# List directory and file structure
149149# RUN tree /apkroot
150150
151- # Remove unnecessary files extracted from apk packages like man pages and docs etc.
152- # RUN rm -rf \
153- # /apkroot/usr/share/man \
154- # /apkroot/usr/share/doc \
155- # /apkroot/usr/share/info
156-
157- # Remove other not needed folder and files ?
151+ # Delete everything except libraries (*.so) that are required for PHP extensions
158152RUN find /apkroot -mindepth 1 \
159153 ! -path '/apkroot/usr' \
160154 ! -path '/apkroot/usr/lib' \
Original file line number Diff line number Diff line change @@ -165,10 +165,7 @@ RUN \
165165# List directory and file structure
166166# RUN tree /dpkg
167167
168- # Remove empty folder
169- RUN find /dpkg/ -type d -empty -delete
170-
171- # Remove other not needed folder and files ?
168+ # Delete everything except libraries (*.so) that are required for PHP extensions
172169RUN find /dpkg -mindepth 1 \
173170 ! -path '/dpkg/usr' \
174171 ! -path '/dpkg/usr/lib' \
You can’t perform that action at this time.
0 commit comments