This commit is contained in:
parent
a6ca2820fb
commit
de791d8acb
@ -1,15 +1,17 @@
|
|||||||
FROM golang:1-alpine AS builder
|
FROM golang:1-alpine AS builder
|
||||||
|
|
||||||
ENV WALG_VERSION=v3.0.7
|
ENV WALG_VERSION=v3.0.7
|
||||||
|
ENV USE_BROTLI=1
|
||||||
|
|
||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
&& apk add --no-cache wget git build-base bash brotli-dev
|
&& apk add --no-cache wget git build-base bash brotli-dev
|
||||||
|
|
||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
&& git clone https://github.com/wal-g/wal-g/ $GOPATH/src/wal-g \
|
&& git clone https://github.com/wal-g/wal-g/ $GOPATH/src/wal-g \
|
||||||
&& cd $GOPATH/src/wal-g/ \
|
&& cd $GOPATH/src/wal-g/ \
|
||||||
&& git checkout $WALG_VERSION \
|
&& git checkout $WALG_VERSION \
|
||||||
&& make deps \
|
&& make deps \
|
||||||
|
RUN set -ex \
|
||||||
|
&& cd $GOPATH/src/wal-g/ \
|
||||||
&& GOBIN=/usr/local/bin make pg_install
|
&& GOBIN=/usr/local/bin make pg_install
|
||||||
RUN wal-g --help
|
RUN wal-g --help
|
||||||
RUN ls -la /usr/local/bin/wal-g*
|
RUN ls -la /usr/local/bin/wal-g*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user