Skip to content

Commit

Permalink
Upgrade alpine version.
Browse files Browse the repository at this point in the history
  • Loading branch information
montaguethomas committed May 22, 2024
1 parent b369411 commit d06c04c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.15 as builder
FROM alpine:3.19 as builder

LABEL maintainer="Opstree Solutions"

Expand Down Expand Up @@ -30,7 +30,7 @@ RUN arch="$(uname -m)"; \
make all; \
make install

FROM alpine:3.15
FROM alpine:3.19

LABEL maintainer="Opstree Solutions"

Expand All @@ -45,6 +45,8 @@ LABEL version=1.0 \
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 apk update && apk upgrade

RUN addgroup -S -g 1000 redis && adduser -S -G redis -u 1000 redis && \
apk add --no-cache bash

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.exporter
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.15 as builder
FROM alpine:3.19 as builder

ARG TARGETARCH

Expand Down
6 changes: 4 additions & 2 deletions Dockerfile.sentinel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.15 as builder
FROM alpine:3.19 as builder

ARG TARGETARCH

Expand All @@ -25,7 +25,7 @@ RUN curl -fL -Lo redis-${REDIS_SENTINEL_VERSION}.tar.gz ${REDIS_DOWNLOAD_URL}/re
make -C redis-${REDIS_SENTINEL_VERSION} all; \
make -C redis-${REDIS_SENTINEL_VERSION} install

FROM alpine:3.15
FROM alpine:3.19

ARG TARGETARCH

Expand All @@ -39,6 +39,8 @@ LABEL version=1.0 \
COPY --from=builder /usr/local/bin/redis-cli /usr/local/bin/redis-cli
COPY --from=builder /usr/local/bin/redis-sentinel /usr/local/bin/redis-sentinel

RUN apk update && apk upgrade

RUN addgroup -S -g 1000 redis && adduser -S -G redis -u 1000 redis && \
apk add --no-cache bash

Expand Down

0 comments on commit d06c04c

Please sign in to comment.