2019-04-08 21:01:20 +01:00
|
|
|
ARG DOCKER_ARCH
|
2019-09-16 14:09:59 +01:00
|
|
|
# Storagenode UI static asset generation
|
|
|
|
FROM node:10.15.1 as ui
|
|
|
|
WORKDIR /app
|
|
|
|
COPY web/storagenode/ /app
|
|
|
|
# Need to clean up (or ignore) local folders like node_modules, etc...
|
|
|
|
RUN npm install
|
|
|
|
RUN npm run build
|
2019-04-08 21:01:20 +01:00
|
|
|
FROM ${DOCKER_ARCH:-amd64}/alpine
|
|
|
|
ARG TAG
|
|
|
|
ARG GOARCH
|
|
|
|
ENV GOARCH ${GOARCH}
|
2018-12-21 16:56:57 +00:00
|
|
|
EXPOSE 28967
|
2018-07-19 20:42:50 +01:00
|
|
|
WORKDIR /app
|
2018-12-21 16:56:57 +00:00
|
|
|
VOLUME /root/.local/share/storj/storagenode
|
2019-09-16 14:09:59 +01:00
|
|
|
COPY --from=ui /app/static /app/static
|
|
|
|
COPY --from=ui /app/dist /app/dist
|
2019-04-08 18:06:01 +01:00
|
|
|
COPY resources/certs.pem /etc/ssl/certs/ca-certificates.crt
|
2019-04-08 21:01:20 +01:00
|
|
|
COPY release/${TAG}/storagenode_linux_${GOARCH:-amd64} /app/storagenode
|
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
|
2018-08-23 16:48:03 +01:00
|
|
|
ENTRYPOINT ["/entrypoint"]
|
2019-04-23 16:51:04 +01:00
|
|
|
|
|
|
|
# Remove after the alpha
|
|
|
|
ENV ADDRESS="" \
|
|
|
|
EMAIL="" \
|
|
|
|
WALLET="" \
|
|
|
|
BANDWIDTH="2.0TB" \
|
|
|
|
STORAGE="2.0TB"
|