diff --git a/.goreleaser.yml b/.goreleaser.yml index 5627fab08..7df22bc83 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -26,9 +26,12 @@ sign: artifacts: checksum dockers: - - image: fabiolb/fabio - latest: true - tag_template: '{{ .Version }}-{{ .Env.GOVERSION }}' + - + dockerfile: Dockerfile-goreleaser + image_templates: + - 'fabiolb/fabio:latest' + - 'fabiolb/fabio:{{ .Version }}-{{ .Env.GOVERSION }}' + - 'magiconair/fabio:latest' + - 'magiconair/fabio:{{ .Version }}-{{ .Env.GOVERSION }}' extra_files: - - build/ca-certificates.crt - fabio.properties diff --git a/Dockerfile-goreleaser b/Dockerfile-goreleaser new file mode 100644 index 000000000..d94cbfbfa --- /dev/null +++ b/Dockerfile-goreleaser @@ -0,0 +1,7 @@ +FROM alpine:3.8 +RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/* +COPY fabio /usr/bin +ADD fabio.properties /etc/fabio/fabio.properties +EXPOSE 9998 9999 +ENTRYPOINT ["/usr/bin/fabio"] +CMD ["-cfg", "/etc/fabio/fabio.properties"]