Files
spring-data-redis/ci/openjdk21-redis-6.2/Dockerfile
2024-06-05 11:33:29 +02:00

18 lines
461 B
Docker

ARG BASE
FROM ${BASE}
# Any ARG statements before FROM are cleared.
ARG VERSION
ENV VERSION=${VERSION}
# Copy Spring Data Redis's Makefile into the container
COPY ./Makefile /
RUN set -eux; \
# sed -i -e 's/http/https/g' /etc/apt/sources.list ; \
apt-get update ; \
apt-get install -y build-essential ; \
make work/redis/bin/redis-cli work/redis/bin/redis-server VERSION=${VERSION}; \
chmod -R o+rw work; \
apt-get clean; \
rm -rf /var/lib/apt/lists/*;