2020-12-20 07:26:23 +00:00
|
|
|
ARG DOCKER_ARCH
|
2022-02-24 12:04:19 +00:00
|
|
|
ARG DOCKER_PLATFORM
|
2020-12-20 07:26:23 +00:00
|
|
|
|
2022-05-10 12:22:47 +01:00
|
|
|
FROM --platform=${DOCKER_PLATFORM:-linux/amd64} storjlabs/storagenode-base:70e276ecb-${DOCKER_ARCH:-amd64}
|
2019-04-08 21:01:20 +01:00
|
|
|
ARG TAG
|
|
|
|
ARG GOARCH
|
2021-08-24 10:26:37 +01:00
|
|
|
ARG VERSION_SERVER_URL
|
2022-05-10 12:22:47 +01:00
|
|
|
ARG SUPERVISOR_SERVER
|
2021-08-24 10:26:37 +01:00
|
|
|
ENV GOARCH ${GOARCH:-amd64}
|
|
|
|
ENV VERSION_SERVER_URL ${VERSION_SERVER_URL:-https://version.storj.io}
|
2022-05-10 12:22:47 +01:00
|
|
|
ENV SUPERVISOR_SERVER ${SUPERVISOR_SERVER:-unix}
|
2018-12-21 16:56:57 +00:00
|
|
|
EXPOSE 28967
|
2021-08-24 10:26:37 +01:00
|
|
|
EXPOSE 14002
|
2022-03-18 10:22:48 +00:00
|
|
|
# copy the files individually to avoid overriding the permissions on the folders
|
|
|
|
COPY cmd/storagenode/docker/entrypoint /entrypoint
|
|
|
|
COPY cmd/storagenode/docker/app/dashboard.sh /app/dashboard.sh
|
|
|
|
COPY cmd/storagenode/docker/bin/systemctl /bin/systemctl
|
2021-05-13 11:36:21 +01:00
|
|
|
WORKDIR /app
|
2018-08-23 16:48:03 +01:00
|
|
|
ENTRYPOINT ["/entrypoint"]
|
2019-04-23 16:51:04 +01:00
|
|
|
|
|
|
|
ENV ADDRESS="" \
|
|
|
|
EMAIL="" \
|
|
|
|
WALLET="" \
|
2020-11-06 18:41:12 +00:00
|
|
|
STORAGE="2.0TB" \
|
2021-08-24 10:26:37 +01:00
|
|
|
SETUP="false" \
|
|
|
|
AUTO_UPDATE="true"
|