2020-12-20 07:26:23 +00:00
|
|
|
ARG DOCKER_ARCH
|
|
|
|
|
2021-08-24 10:26:37 +01:00
|
|
|
FROM ${DOCKER_ARCH:-amd64}/alpine as alpine-arch
|
2020-12-08 20:49:41 +00:00
|
|
|
|
2021-08-24 10:26:37 +01:00
|
|
|
# Fetch ca-certificates file and supervisor apk pkg with dependecies for arch independent builds below
|
|
|
|
FROM alpine as alpine-generic
|
|
|
|
ARG APK_ARCH=x86_64
|
|
|
|
RUN apk -U add ca-certificates && cat /etc/apk/arch
|
|
|
|
RUN echo $APK_ARCH > /etc/apk/arch && cat /etc/apk/arch
|
|
|
|
RUN mkdir /tmp/apk-supervisor
|
|
|
|
RUN rm -rf /etc/apk/keys/*
|
|
|
|
COPY --from=alpine-arch /etc/apk/keys /etc/apk/keys
|
|
|
|
RUN apk fetch --no-cache -R -o /tmp/apk-supervisor supervisor
|
|
|
|
|
|
|
|
FROM alpine-arch
|
2019-04-08 21:01:20 +01:00
|
|
|
ARG TAG
|
|
|
|
ARG GOARCH
|
2021-08-24 10:26:37 +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
|
2021-08-24 10:26:37 +01:00
|
|
|
EXPOSE 14002
|
|
|
|
COPY --from=alpine-generic /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
|
|
|
COPY --from=alpine-generic /tmp/apk-supervisor/* /var/lib/apk-supervisor/
|
|
|
|
COPY cmd/storagenode/docker/ /
|
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"
|