2020-12-20 07:26:23 +00:00
|
|
|
ARG DOCKER_ARCH
|
2020-08-05 10:43:49 +01:00
|
|
|
ARG APK_ARCH
|
2020-12-20 07:26:23 +00:00
|
|
|
|
2020-08-05 10:43:49 +01:00
|
|
|
# Fetch ca-certificates file and supervisor apk pkg with dependecies for arch independent builds below
|
|
|
|
FROM alpine as alpine
|
2020-12-08 20:49:41 +00:00
|
|
|
RUN apk -U add ca-certificates
|
2020-08-05 10:43:49 +01:00
|
|
|
RUN echo ${APK_ARCH:-x86_64} > /etc/apk/arch
|
|
|
|
RUN mkdir /tmp/apk-supervisor
|
|
|
|
RUN apk fetch --no-cache -R -o /tmp/apk-supervisor supervisor
|
2020-12-08 20:49:41 +00:00
|
|
|
|
2019-04-08 21:01:20 +01:00
|
|
|
FROM ${DOCKER_ARCH:-amd64}/alpine
|
|
|
|
ARG TAG
|
|
|
|
ARG GOARCH
|
2020-08-05 10:43:49 +01:00
|
|
|
ARG VERSION_SERVER_URL
|
|
|
|
ENV GOARCH ${GOARCH:-amd64}
|
|
|
|
ENV VERSION_SERVER_URL ${VERSION_SERVER_URL:-https://version.storj.io}
|
2018-12-21 16:56:57 +00:00
|
|
|
EXPOSE 28967
|
2020-08-05 10:43:49 +01:00
|
|
|
EXPOSE 14002
|
|
|
|
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
|
|
|
COPY --from=alpine /tmp/apk-supervisor/* /var/lib/apk-supervisor/
|
2018-08-25 02:52:58 +01:00
|
|
|
COPY cmd/storagenode/entrypoint /entrypoint
|
2019-04-23 16:51:04 +01:00
|
|
|
COPY cmd/storagenode/dashboard.sh /app/dashboard.sh
|
2020-08-05 10:43:49 +01:00
|
|
|
COPY cmd/storagenode/supervisord.conf /etc/supervisord.conf
|
|
|
|
COPY cmd/storagenode/systemctl /bin/systemctl
|
|
|
|
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" \
|
2020-08-05 10:43:49 +01:00
|
|
|
SETUP="false" \
|
|
|
|
AUTO_UPDATE="true"
|