[Dockerfiles] Rename some files and create hook points

This commit is contained in:
andryyy committed 2019-10-18 12:01:47 +02:00
1 parent b02f73e68e
commit b0711db489
17 files changed
+53 -13

No files matched your search

+1
View File
@@ -85,4 +85,5 @@ RUN apk add -U --no-cache autoconf \
COPY ./docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["php-fpm"]
@@ -123,4 +123,12 @@ EOF
fi
fi
# Run hooks
for file in /hooks/*; do
if [ -x "${file}" ]; then
echo "Running hook ${file}"
"${file}"
fi
done
exec "$@"