Files
Mark Paluch 13343a00fb Polishing.
Add missing packages.

See #3136
2025-05-12 10:53:26 +02:00

21 lines
708 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/archive.ubuntu.com/mirror.one.com/g' /etc/apt/sources.list && \
sed -i -e 's/security.ubuntu.com/mirror.one.com/g' /etc/apt/sources.list && \
sed -i -e 's/ports.ubuntu.com/mirrors.ocf.berkeley.edu/g' /etc/apt/sources.list && \
sed -i -e 's/http/https/g' /etc/apt/sources.list && \
apt-get update ; \
apt-get install -y build-essential curl; \
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/*;