Skip to content

Commit

Permalink
feat(valkey): rework image using wolfi as build image stage
Browse files Browse the repository at this point in the history
  • Loading branch information
f-bn committed Aug 20, 2024
1 parent af53e08 commit c906359
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions valkey/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
# --- Build stage ---
FROM docker.io/gcc:14.2 AS build
FROM cgr.dev/chainguard/wolfi-base:latest AS build

ARG TARGETOS
ARG TARGETARCH
ARG VERSION="7.2.6"

RUN set -ex ; \
apk add --no-cache \
automake \
autoconf \
build-base \
git \
openssl-dev

WORKDIR /build

RUN git clone --single-branch --branch "${VERSION}" https://github.com/valkey-io/valkey.git /build
ADD https://github.com/valkey-io/valkey.git#${VERSION} /build

COPY patches/0000-disable-protected-mode.patch /build/0000-disable-protected-mode.patch

Expand Down

0 comments on commit c906359

Please sign in to comment.