e486585853
We've had a lot of issues with alpine and currently there's a broken network issue on alpine for users running on RPI arm32 architechture which requires a workaround before docker is able to sync time between the host and the container: https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.13.0\#time64_requirements. Since we're switching the base image of the storagenode to debian, it's best to switch the base image of all our docker images to debian as well for consistency; less drift across them and keeps the push target consistent. Change-Id: If3adf7a57dc59f19ef2221b892f340d919798fc5
18 lines
563 B
Docker
18 lines
563 B
Docker
ARG DOCKER_ARCH
|
|
|
|
# Fetch ca-certificates file for arch independent builds below
|
|
FROM debian:buster-slim as ca-cert
|
|
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates
|
|
RUN update-ca-certificates
|
|
|
|
FROM ${DOCKER_ARCH:-amd64}/debian:buster-slim
|
|
ARG TAG
|
|
ARG GOARCH
|
|
ENV GOARCH ${GOARCH}
|
|
EXPOSE 15002
|
|
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
|
|
ENTRYPOINT ["/entrypoint"]
|