chore(docker): support multiple platform

fix https://github.com/appleboy/gorush/issues/720
This commit is contained in:
Bo-Yi Wu
2023-02-27 14:22:39 +08:00
parent a493ed67ba
commit f434c97a68
7 changed files with 25 additions and 120 deletions

20
docker/Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM alpine:3.17
ARG TARGETOS
ARG TARGETARCH
LABEL maintainer="Bo-Yi Wu <appleboy.tw@gmail.com>" \
org.label-schema.name="Gorush" \
org.label-schema.vendor="Bo-Yi Wu" \
org.label-schema.schema-version="1.0"
RUN apk add --no-cache ca-certificates mailcap && \
rm -rf /var/cache/apk/*
COPY release/${TARGETOS}/${TARGETARCH}/gorush /bin/
EXPOSE 8088 9000
HEALTHCHECK --start-period=1s --interval=10s --timeout=5s \
CMD ["/bin/gorush", "--ping"]
ENTRYPOINT ["/bin/gorush"]