Skip to content

Commit b7f8901

Browse files
committed
cleanup
1 parent d0ed418 commit b7f8901

2 files changed

Lines changed: 2 additions & 11 deletions

File tree

dhi.alpine.fpm.wsc.Dockerfile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff 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
158152
RUN find /apkroot -mindepth 1 \
159153
! -path '/apkroot/usr' \
160154
! -path '/apkroot/usr/lib' \

dhi.debian.fpm.wsc.Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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
172169
RUN find /dpkg -mindepth 1 \
173170
! -path '/dpkg/usr' \
174171
! -path '/dpkg/usr/lib' \

0 commit comments

Comments
 (0)