postgres-with-walg/Dockerfile
Matt Avery 43b42f061d
All checks were successful
Build Docker Image / build (push) Successful in 3m7s
workflow
2025-06-24 22:51:34 -04:00

22 lines
638 B
Docker

FROM golang:1-alpine AS builder
ENV WALG_VERSION=v3.0.5
ENV USE_BROTLI=1
RUN set -ex \
&& apk add --no-cache wget git build-base bash brotli-dev cmake
RUN set -ex \
&& git clone https://github.com/wal-g/wal-g/ $GOPATH/src/wal-g \
&& cd $GOPATH/src/wal-g/ \
&& git checkout $WALG_VERSION \
&& make deps
RUN set -ex \
&& cd $GOPATH/src/wal-g/ \
&& echo $(git rev-parse --short HEAD) \
&& echo $(git tag -l --points-at HEAD) \
&& GOBIN=/usr/local/bin make pg_install
RUN wal-g --help
RUN ls -la /usr/local/bin/wal-g*
FROM alpine:3
COPY --from=builder /usr/local/bin/wal-g /usr/local/bin/wal-g