storj/cmd/storagenode/Dockerfile
JT Olio 37491d0d32 storagenode: embed the console into the binary and makefile (#3164)
* web/storagenode: add package-lock.json
* storagenode: compile console into binary
2019-10-08 10:52:19 +02:00

21 lines
533 B
Docker

ARG DOCKER_ARCH
FROM ${DOCKER_ARCH:-amd64}/alpine
ARG TAG
ARG GOARCH
ENV GOARCH ${GOARCH}
EXPOSE 28967
WORKDIR /app
VOLUME /root/.local/share/storj/storagenode
COPY resources/certs.pem /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="" \
BANDWIDTH="2.0TB" \
STORAGE="2.0TB"