coreos-home-server/service/redis/Containerfile
Alex Palaistras fcf9175060 Enable Podman auto-updates for Redis and MariaDB
Container auto-updates are scheduled for 30 minutes past every hour, or
approximately 30 minutes after `coreos-home-server-update` runs, in
order to give enough time for container builds to complete; only
containers with auto-updates enabled are eligible, however.

This also enables health-checks for Redis, and updates the version to
7.2.
2023-10-29 13:31:27 +00:00

15 lines
524 B
Docker

FROM docker.io/debian:bookworm-slim
ARG VERSION=7.2
RUN apt-get update -y && apt-get install -y --no-install-recommends ca-certificates
ADD --chown=_apt https://packages.redis.io/gpg /etc/apt/trusted.gpg.d/redis.asc
RUN echo "deb https://packages.redis.io/deb bookworm main" > /etc/apt/sources.list.d/redis.list && \
apt-get update && apt-get install -y --no-install-recommends redis-server="6:${VERSION}*"
COPY container/config /etc/redis
USER redis
EXPOSE 6379
ENTRYPOINT ["redis-server", "/etc/redis/redis.conf"]