2019-02-28 20:12:52 +00:00
|
|
|
# Satellite UI static asset generation
|
|
|
|
FROM node:10.15.1 as satellite-ui
|
|
|
|
WORKDIR /app
|
|
|
|
COPY web/satellite/ /app
|
|
|
|
# Need to clean up (or ignore) local folders like node_modules, etc...
|
|
|
|
RUN npm install
|
|
|
|
RUN npm run build
|
2018-06-05 22:06:37 +01:00
|
|
|
|
2019-04-11 20:45:02 +01:00
|
|
|
FROM alpine as ca-cert
|
|
|
|
RUN apk -U add ca-certificates
|
|
|
|
|
2019-04-16 22:06:59 +01:00
|
|
|
ARG DOCKER_ARCH
|
|
|
|
FROM ${DOCKER_ARCH:-amd64}/alpine
|
|
|
|
ARG TAG
|
|
|
|
ARG GOARCH
|
|
|
|
ENV GOARCH ${GOARCH}
|
2018-09-07 20:46:08 +01:00
|
|
|
ENV API_KEY= \
|
2018-12-17 16:54:32 +00:00
|
|
|
CONF_PATH=/root/.local/share/storj/satellite \
|
2019-02-28 20:12:52 +00:00
|
|
|
STORJ_CONSOLE_STATIC_DIR=/app \
|
|
|
|
STORJ_CONSOLE_ADDRESS=0.0.0.0:10100
|
2018-12-21 16:56:57 +00:00
|
|
|
EXPOSE 7777
|
2019-02-28 20:12:52 +00:00
|
|
|
EXPOSE 10100
|
2018-06-05 22:06:37 +01:00
|
|
|
WORKDIR /app
|
2019-04-16 22:06:59 +01:00
|
|
|
COPY --from=satellite-ui /app/static /app/static
|
|
|
|
COPY --from=satellite-ui /app/dist /app/dist
|
2019-04-11 20:45:02 +01:00
|
|
|
COPY --from=ca-cert /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
2019-04-16 22:06:59 +01:00
|
|
|
COPY release/${TAG}/satellite_linux_${GOARCH:-amd64} /app/satellite
|
|
|
|
COPY cmd/satellite/entrypoint /entrypoint
|
2018-08-23 16:48:03 +01:00
|
|
|
ENTRYPOINT ["/entrypoint"]
|