2020-12-03 00:32:17 +00:00
|
|
|
ARG REPO_LOCATION
|
|
|
|
# ARG BASE_VERSION=something
|
|
|
|
|
|
|
|
FROM ${REPO_LOCATION}minideb AS builder
|
|
|
|
|
2020-12-03 02:22:33 +00:00
|
|
|
RUN install_packages curl ca-certificates make gcc pkgconf libc-dev libjemalloc-dev tcl procps
|
2020-12-03 00:32:17 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2020-12-04 13:18:38 +00:00
|
|
|
RUN make distclean && make -j$(nproc)
|
2020-12-03 00:32:17 +00:00
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
FROM ${REPO_LOCATION}minideb
|
|
|
|
|
2020-12-04 17:47:23 +00:00
|
|
|
RUN install_packages libatomic1
|
|
|
|
|
2020-12-04 15:51:09 +00:00
|
|
|
COPY --from=builder /srv/redis-stable/src/redis-server /srv/redis-stable/src/redis-cli /srv/redis-stable/src/redis-sentinel /usr/local/bin/
|
2020-12-03 00:32:17 +00:00
|
|
|
# COPY --from=builder /srv/redis-stable/src/redis-benchmark /usr/local/bin
|
|
|
|
|
|
|
|
USER 2100:2100
|
|
|
|
|
2020-12-04 15:53:21 +00:00
|
|
|
ENTRYPOINT [ "/usr/local/bin/redis-server" ]
|