25 lines
634 B
Docker
25 lines
634 B
Docker
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}
|
|
EXPOSE 28967
|
|
WORKDIR /app
|
|
COPY --from=ca-cert /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
|
COPY release/${TAG}/storagenode_linux_${GOARCH:-amd64} /app/storagenode
|
|
COPY cmd/storagenode/entrypoint /entrypoint
|
|
COPY cmd/storagenode/dashboard.sh /app/dashboard.sh
|
|
ENTRYPOINT ["/entrypoint"]
|
|
|
|
# Remove after the alpha
|
|
ENV ADDRESS="" \
|
|
EMAIL="" \
|
|
WALLET="" \
|
|
STORAGE="2.0TB" \
|
|
SETUP="false"
|