Skip to content

Commit

Permalink
fix lilnt
Browse files Browse the repository at this point in the history
Signed-off-by: Shubham Gupta <[email protected]>
  • Loading branch information
shubham-cmyk committed Oct 6, 2023
1 parent bb65cd4 commit ed58aa1
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,48 +1,43 @@
FROM alpine:3.15 as builder

LABEL maintainer="Opstree Solutions"
MAINTAINER Opstree Solutions

Check failure on line 3 in Dockerfile

View workflow job for this annotation

GitHub Actions / build_dockerfile

DL4000 error: MAINTAINER is deprecated

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 && \

Check failure on line 16 in Dockerfile

View workflow job for this annotation

GitHub Actions / build_dockerfile

DL3003 warning: Use WORKDIR to switch to a directory
cd /tmp && \
tar xvzf redis-${REDIS_VERSION}.tar.gz && \
cd redis-${REDIS_VERSION} && \
make && \
make install BUILD_TLS=yes

FROM alpine:3.15

LABEL maintainer="Opstree Solutions"
MAINTAINER Opstree Solutions

Check failure on line 24 in Dockerfile

View workflow job for this annotation

GitHub Actions / build_dockerfile

DL4000 error: MAINTAINER is deprecated

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 && \
Expand Down

0 comments on commit ed58aa1

Please sign in to comment.