Add more architectures, moved to docker baker build system

This commit is contained in:
Pau Rodriguez-Estivill
2020-02-11 18:45:46 +01:00
parent bac1647953
commit f7301fd81e
7 changed files with 180 additions and 19 deletions
+6 -2
View File
@@ -1,8 +1,12 @@
FROM postgres:alpine
ARG BASETAG=alpine
FROM postgres:$BASETAG
ARG GOCRONVER=v0.0.8
ARG TARGETOS
ARG TARGETARCH
RUN set -x \
&& apk update && apk add ca-certificates curl \
&& curl -L https://github.com/prodrigestivill/go-cron/releases/download/v0.0.8/go-cron-linux-amd64-static.gz | zcat > /usr/local/bin/go-cron \
&& curl -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 \
&& apk del ca-certificates