mirror of
https://github.com/prodrigestivill/docker-postgres-backup-local.git
synced 2026-06-29 06:48:04 +00:00
Implement curl retry in Dockerfile
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ ARG TARGETOS
|
|||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& apk update && apk add ca-certificates curl \
|
&& apk update && apk add ca-certificates curl \
|
||||||
&& curl -L https://github.com/prodrigestivill/go-cron/releases/download/$GOCRONVER/go-cron-$TARGETOS-$TARGETARCH-static.gz | zcat > /usr/local/bin/go-cron \
|
&& curl --fail --retry 4 --retry-all-errors -L https://github.com/prodrigestivill/go-cron/releases/download/$GOCRONVER/go-cron-$TARGETOS-$TARGETARCH-static.gz | zcat > /usr/local/bin/go-cron \
|
||||||
&& chmod a+x /usr/local/bin/go-cron
|
&& chmod a+x /usr/local/bin/go-cron
|
||||||
|
|
||||||
ENV POSTGRES_DB="**None**" \
|
ENV POSTGRES_DB="**None**" \
|
||||||
|
|||||||
+1
-1
@@ -20,7 +20,7 @@ RUN set -x \
|
|||||||
|
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && apt-get clean && rm -rf /var/lib/apt/lists/* \
|
&& apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && apt-get clean && rm -rf /var/lib/apt/lists/* \
|
||||||
&& curl -o /usr/local/bin/go-cron.gz -L https://github.com/prodrigestivill/go-cron/releases/download/$GOCRONVER/go-cron-$TARGETOS-$TARGETARCH.gz \
|
&& curl --fail --retry 4 --retry-all-errors -o /usr/local/bin/go-cron.gz -L https://github.com/prodrigestivill/go-cron/releases/download/$GOCRONVER/go-cron-$TARGETOS-$TARGETARCH.gz \
|
||||||
&& gzip -vnd /usr/local/bin/go-cron.gz && chmod a+x /usr/local/bin/go-cron
|
&& gzip -vnd /usr/local/bin/go-cron.gz && chmod a+x /usr/local/bin/go-cron
|
||||||
|
|
||||||
ENV POSTGRES_DB="**None**" \
|
ENV POSTGRES_DB="**None**" \
|
||||||
|
|||||||
Reference in New Issue
Block a user