Polishing.

See #2268
This commit is contained in:
Mark Paluch
2022-02-22 10:31:40 +01:00
parent 2183079517
commit 3fb8c57dfa

View File

@@ -1,12 +1,16 @@
FROM adoptopenjdk/openjdk15:latest
ARG BASE
FROM ${BASE}
# Any ARG statements before FROM are cleared.
ARG REDIS
# 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 REDIS_VERSION=6.2.1; \
make work/redis/bin/redis-cli work/redis/bin/redis-server REDIS_VERSION=${REDIS}; \
chmod -R o+rw work; \
apt-get clean; \
rm -rf /var/lib/apt/lists/*;