Initial Commit
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
FROM redis:8.6.1
|
||||
|
||||
RUN apt update && apt install -y --no-install-recommends gettext && apt clean && rm -rf /var/lib/apt/lists/*
|
||||
ADD ./entrypoint.sh /entrypoint.sh
|
||||
|
||||
ENTRYPOINT [ "/entrypoint.sh" ]
|
||||
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if [ "${1%.tmpl}" != "$1" ]; then
|
||||
cat "$1" | envsubst > /etc/redis.conf
|
||||
set -- /etc/redis.conf
|
||||
fi
|
||||
|
||||
docker-entrypoint.sh "$@"
|
||||
Reference in New Issue
Block a user