Files
Greg L. Turnquist 75e918bd3a Externalize build properties.
By reading a properties file from an external location, it is possible to inject a consistent set of properties from Spring Data Build. This also supports repeatable builds.

Closes #2245.
2022-01-31 16:35:17 -06:00

16 lines
385 B
Docker

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; \
apt-get update ; \
apt-get install -y build-essential ; \
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/*;