redis: add Dockerfile

This commit is contained in:
Starbeamrainbowlabs 2020-12-03 00:32:17 +00:00
parent 8199d07434
commit 18e07b3688
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
3 changed files with 29 additions and 0 deletions

View file

@ -43,3 +43,4 @@ UID | GID | Container | Notes
80 | 80 | serve | Static HTTP Server based on Node.js
90 | 90 | jellyfin |
999 | 994 | certbot | The same user & group as fabio, because file permissions
2100 | 2100 | redis |

27
images/redis/Dockerfile Normal file
View file

@ -0,0 +1,27 @@
ARG REPO_LOCATION
# ARG BASE_VERSION=something
FROM ${REPO_LOCATION}minideb AS builder
RUN install_packages curl ca-certificates libjemalloc-dev
RUN curl -L -o /tmp/redis-stable.tar.gz https://download.redis.io/redis-stable.tar.gz
RUN tar -xf /tmp/redis-stable.tar.gz -C /srv
WORKDIR /srv/redis-stable
RUN make distclean && make -j$(nproc) && make test -j$(nproc)
###############################################################################
FROM ${REPO_LOCATION}minideb
COPY --from=builder /srv/redis-stable/src/redis-server /usr/local/bin
COPY --from=builder /srv/redis-stable/src/redis-cli /usr/local/bin
COPY --from=builder /srv/redis-stable/src/redis-sentinel /usr/local/bin
# COPY --from=builder /srv/redis-stable/src/redis-benchmark /usr/local/bin
USER 2100:2100
ENTRYPOINT [ "/usr/local/redis-server" ]

1
images/redis/type.txt Normal file
View file

@ -0,0 +1 @@
docker