2022-02-20 21:56:33 +00:00
|
|
|
ARG DOCKER_ARCH
|
|
|
|
|
|
|
|
# Fetch ca-certificates file for arch independent builds below
|
|
|
|
FROM alpine as ca-cert
|
|
|
|
RUN apk -U add ca-certificates
|
|
|
|
|
|
|
|
FROM ${DOCKER_ARCH:-amd64}/alpine
|
|
|
|
ARG TAG
|
|
|
|
ARG GOARCH
|
|
|
|
ENV GOARCH ${GOARCH}
|
2022-02-20 22:42:43 +00:00
|
|
|
EXPOSE 15002
|
2022-02-20 21:56:33 +00:00
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=ca-cert /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
|
|
|
COPY release/${TAG}/multinode_linux_${GOARCH:-amd64} /app/multinode
|
|
|
|
COPY cmd/multinode/entrypoint /entrypoint
|
2022-02-20 22:42:43 +00:00
|
|
|
ENTRYPOINT ["/entrypoint"]
|