diff --git a/Dockerfile b/Dockerfile index 0ec0e33..1c659fa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,21 +1,19 @@ FROM alpine:3.15 as builder -LABEL maintainer="Opstree Solutions" +MAINTAINER Opstree Solutions ARG TARGETARCH -LABEL VERSION=1.0 \ - ARCH=$TARGETARCH \ - DESCRIPTION="A production grade performance tuned redis docker image created by Opstree Solutions" +LABEL version="1.0" \ + architecture="$TARGETARCH" \ + description="A production grade performance tuned redis docker image created by Opstree Solutions" ARG REDIS_DOWNLOAD_URL="http://download.redis.io/" - ARG REDIS_VERSION="stable" RUN apk add --no-cache su-exec tzdata make curl build-base linux-headers bash openssl-dev RUN curl -fL -Lo /tmp/redis-${REDIS_VERSION}.tar.gz ${REDIS_DOWNLOAD_URL}/redis-${REDIS_VERSION}.tar.gz && \ - cd /tmp && \ tar xvzf redis-${REDIS_VERSION}.tar.gz && \ cd redis-${REDIS_VERSION} && \ make && \ @@ -23,26 +21,23 @@ RUN curl -fL -Lo /tmp/redis-${REDIS_VERSION}.tar.gz ${REDIS_DOWNLOAD_URL}/redis- FROM alpine:3.15 -LABEL maintainer="Opstree Solutions" +MAINTAINER Opstree Solutions ARG TARGETARCH -LABEL VERSION=1.0 \ - ARCH=$TARGETARCH \ - DESCRIPTION="A production grade performance tuned redis docker image created by Opstree Solutions" +LABEL version="1.0" \ + architecture="$TARGETARCH" \ + description="A production grade performance tuned redis docker image created by Opstree Solutions" COPY --from=builder /usr/local/bin/redis-server /usr/local/bin/redis-server COPY --from=builder /usr/local/bin/redis-cli /usr/local/bin/redis-cli RUN addgroup -S -g 1000 redis && adduser -S -G redis -u 1000 redis && \ - apk add --no-cache bash + apk add --no-cache bash=5.1 COPY redis.conf /etc/redis/redis.conf - COPY entrypoint.sh /usr/bin/entrypoint.sh - COPY setupMasterSlave.sh /usr/bin/setupMasterSlave.sh - COPY healthcheck.sh /usr/bin/healthcheck.sh RUN chown -R 1000:0 /etc/redis && \