[Dockerfiles] Rename some files and create hook points
This commit is contained in:
@@ -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 "$@"
|
||||
|
Reference in New Issue
Block a user