2018-09-05 21:40:47 +01:00
|
|
|
ARG CGO_ENABLED=1
|
|
|
|
ARG REPOSITORY=../storj.io/storj
|
|
|
|
ARG PACKAGE=storj.io/storj/cmd/satellite
|
2018-09-12 16:02:53 +01:00
|
|
|
FROM storjlabs/golang as build-env
|
2018-06-05 22:06:37 +01:00
|
|
|
|
|
|
|
# final stage
|
|
|
|
FROM alpine
|
2018-09-07 20:46:08 +01:00
|
|
|
ENV API_KEY= \
|
|
|
|
CONF_PATH=/root/.storj/satellite/config.yaml \
|
|
|
|
OVERLAY_URL=redis://redis:6379/?db=0 \
|
2018-08-23 16:48:03 +01:00
|
|
|
IDENTITY_ADDR=:7777 \
|
2018-09-07 20:46:08 +01:00
|
|
|
BOOTSTRAP_ADDR=bootstrap.storj.io:8080 \
|
2018-09-12 16:02:53 +01:00
|
|
|
STORJ_MOCK_OVERLAY_NODES=
|
2018-09-07 20:46:08 +01:00
|
|
|
EXPOSE 7776/udp \
|
|
|
|
7777 \
|
|
|
|
8080
|
2018-06-05 22:06:37 +01:00
|
|
|
WORKDIR /app
|
2018-09-05 21:40:47 +01:00
|
|
|
COPY --from=build-env /app /app/satellite
|
2018-08-29 19:32:41 +01:00
|
|
|
COPY cmd/satellite/entrypoint /entrypoint
|
2018-08-23 16:48:03 +01:00
|
|
|
ENTRYPOINT ["/entrypoint"]
|