This commit is contained in:
parent
c7c3011b81
commit
1c6e83996c
31
Dockerfile
Normal file
31
Dockerfile
Normal file
@ -0,0 +1,31 @@
|
||||
FROM golang:1-alpine AS builder
|
||||
|
||||
ENV WALG_VERSION=v3.0.7
|
||||
ENV BROTLI_VERSION=v1.1.0
|
||||
|
||||
RUN set -ex \
|
||||
&& apk add --no-cache wget cmake git build-base bash
|
||||
|
||||
RUN set -ex \
|
||||
&& cd /tmp \
|
||||
&& wget -qO - https://github.com/google/brotli/archive/${BROTLI_VERSION}.tar.gz | tar xz -f '-' \
|
||||
&& cd brotli* \
|
||||
&& mkdir out \
|
||||
&& cd out \
|
||||
&& ../configure-cmake --disable-debug \
|
||||
&& make \
|
||||
&& make install
|
||||
|
||||
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 install \
|
||||
&& make deps \
|
||||
&& make pg_build \
|
||||
&& make link_brotli \
|
||||
&& install main/pg/wal-g / \
|
||||
&& /wal-g --help
|
||||
|
||||
FROM alpine:3.11.5
|
||||
COPY --from=builder /wal-g /
|
Loading…
x
Reference in New Issue
Block a user