2022-02-20 21:56:33 +00:00
|
|
|
ARG DOCKER_ARCH
|
|
|
|
|
|
|
|
# Fetch ca-certificates file for arch independent builds below
|
2022-03-25 08:18:58 +00:00
|
|
|
FROM debian:buster-slim as ca-cert
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates
|
|
|
|
RUN update-ca-certificates
|
2022-02-20 21:56:33 +00:00
|
|
|
|
2022-03-25 08:18:58 +00:00
|
|
|
FROM ${DOCKER_ARCH:-amd64}/debian:buster-slim
|
2022-02-20 21:56:33 +00:00
|
|
|
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"]
|