mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 13:40:45 +00:00
Alex Palaistras
fcf9175060
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.
15 lines
524 B
Docker
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"]
|