mirror of
https://github.com/prodrigestivill/docker-postgres-backup-local.git
synced 2026-05-31 08:37:58 +00:00
Fix Debian cross-build #44
This commit is contained in:
@@ -4,6 +4,16 @@ FROM postgres:$BASETAG
|
||||
ARG GOCRONVER=v0.0.10
|
||||
ARG TARGETOS
|
||||
ARG TARGETARCH
|
||||
|
||||
# FIX Debian cross build
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
RUN set -x \
|
||||
&& ln -s /usr/bin/dpkg-split /usr/sbin/dpkg-split \
|
||||
&& ln -s /usr/bin/dpkg-deb /usr/sbin/dpkg-deb \
|
||||
&& ln -s /bin/tar /usr/sbin/tar \
|
||||
&& ln -s /bin/rm /usr/sbin/rm
|
||||
#
|
||||
|
||||
RUN set -x \
|
||||
&& apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* \
|
||||
&& curl -L https://github.com/prodrigestivill/go-cron/releases/download/$GOCRONVER/go-cron-$TARGETOS-$TARGETARCH.gz | zcat > /usr/local/bin/go-cron \
|
||||
|
||||
Reference in New Issue
Block a user