Skip to content

Commit

Permalink
chore(minio): use bin mc replace docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
duanhongyi committed Aug 26, 2020
1 parent d0c3a8c commit 4b7629d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
FROM minio/mc:RELEASE.2020-07-17T02-52-20Z as mc

FROM postgres:13-alpine

COPY rootfs /
COPY --from=mc /usr/bin/mc /bin/mc

ENV PGDATA $PGDATA/$PG_MAJOR
ENV WALG_ENVDIR /etc/wal-g.d/env
ADD https://github.com/wal-g/wal-g/releases/download/v0.2.16/wal-g.linux-amd64.tar.gz /bin

RUN mkdir -p $WALG_ENVDIR \
RUN wget https://dl.min.io/client/mc/release/linux-amd64/mc -O /bin/mc \
&& chmod +x /bin/mc \
&& mkdir -p $WALG_ENVDIR \
&& tar -xvzf /bin/wal-g.linux-amd64.tar.gz -C /bin && rm /bin/wal-g.linux-amd64.tar.gz \
&& wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.31-r0/glibc-2.31-r0.apk \
&& apk add --allow-untrusted glibc-2.31-r0.apk \
&& rm glibc-2.31-r0.apk \
&& apk add --allow-untrusted glibc-2.31-r0.apk \
&& rm glibc-2.31-r0.apk \
&& apk add --no-cache jq python3 curl \
&& curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
&& python3 get-pip.py \
Expand Down

0 comments on commit 4b7629d

Please sign in to comment.