chore: matrix build (#106)

* chore: matrix build

* chore: test goos goarch

* fix: artifact path

* chore: new download version

* artifact paths
This commit is contained in:
Florian Forster
2020-05-14 07:38:58 +02:00
committed by GitHub
parent 92a294f5c8
commit 767bc5ce6c
3 changed files with 29 additions and 15 deletions

View File

@@ -1,18 +1,15 @@
#
# This Stage prepares the user in the container and copies the files
FROM alpine:latest as prepare
RUN adduser -D zitadel
COPY .build/go/zitadel /
COPY .artifacts/zitadel-linux-amd64 /zitadel
COPY cmd/zitadel/*.yaml /
RUN chmod a+x /zitadel
#
# This Stage is intended as production image
FROM scratch as final
COPY --from=prepare /etc/passwd /etc/passwd
COPY --from=prepare / /
USER zitadel
HEALTHCHECK NONE
ENTRYPOINT ["/zitadel"]
## TODO enable CMD