redis: add Dockerfile
This commit is contained in:
parent
8199d07434
commit
18e07b3688
3 changed files with 29 additions and 0 deletions
|
@ -43,3 +43,4 @@ UID | GID | Container | Notes
|
||||||
80 | 80 | serve | Static HTTP Server based on Node.js
|
80 | 80 | serve | Static HTTP Server based on Node.js
|
||||||
90 | 90 | jellyfin |
|
90 | 90 | jellyfin |
|
||||||
999 | 994 | certbot | The same user & group as fabio, because file permissions
|
999 | 994 | certbot | The same user & group as fabio, because file permissions
|
||||||
|
2100 | 2100 | redis |
|
||||||
|
|
27
images/redis/Dockerfile
Normal file
27
images/redis/Dockerfile
Normal 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
1
images/redis/type.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
docker
|
Loading…
Reference in a new issue