Apply patches in prod images as well

This commit is contained in:
amercader 2023-10-17 12:46:45 +02:00
parent f653b0324d
commit 2e46f06280

View File

@ -3,3 +3,15 @@ FROM ckan/ckan-base:2.10.1
# Copy custom initialization scripts # Copy custom initialization scripts
COPY docker-entrypoint.d/* /docker-entrypoint.d/ COPY docker-entrypoint.d/* /docker-entrypoint.d/
# Apply any patches needed to CKAN core or any of the built extensions (not the
# runtime mounted ones)
COPY patches ${APP_DIR}/patches
RUN for d in $APP_DIR/patches/*; do \
if [ -d $d ]; then \
for f in `ls $d/*.patch | sort -g`; do \
cd $SRC_DIR/`basename "$d"` && echo "$0: Applying patch $f to $SRC_DIR/`basename $d`"; patch -p1 < "$f" ; \
done ; \
fi ; \
done