2019-09-16 14:09:59 +01:00
|
|
|
ARG DOCKER_ARCH
|
2019-02-28 20:12:52 +00:00
|
|
|
# Satellite UI static asset generation
|
2019-09-16 14:09:59 +01:00
|
|
|
FROM node:10.15.1 as ui
|
2019-02-28 20:12:52 +00:00
|
|
|
WORKDIR /app
|
|
|
|
COPY web/satellite/ /app
|
2019-06-25 14:41:19 +01:00
|
|
|
COPY web/marketing/ /app/marketing
|
2019-02-28 20:12:52 +00:00
|
|
|
# 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
|
|
|
FROM ${DOCKER_ARCH:-amd64}/alpine
|
|
|
|
ARG TAG
|
|
|
|
ARG GOARCH
|
|
|
|
ENV GOARCH ${GOARCH}
|
2020-06-22 20:06:31 +01:00
|
|
|
ENV 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-09-16 14:09:59 +01:00
|
|
|
COPY --from=ui /app/static /app/static
|
|
|
|
COPY --from=ui /app/dist /app/dist
|
|
|
|
COPY --from=ui /app/marketing /app/marketing
|
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
|
2020-03-16 13:05:59 +00:00
|
|
|
COPY release/${TAG}/inspector_linux_${GOARCH:-amd64} /app/inspector
|
2019-04-16 22:06:59 +01:00
|
|
|
COPY cmd/satellite/entrypoint /entrypoint
|
2020-05-25 01:39:21 +01:00
|
|
|
RUN apk add --no-cache curl
|
2018-08-23 16:48:03 +01:00
|
|
|
ENTRYPOINT ["/entrypoint"]
|