storj/cmd/satellite/Dockerfile
Matt Robinson 75c64035a2 Normalize the Docker Bits (#325)
* Normalize the dockerfiles and entrypoints

* fix formattting and docker-compose file

* add missing env var to satellite dockerfile

* Remove build args no longer in use

* More changes to make it all work
2018-09-07 15:46:08 -04:00

21 lines
526 B
Docker

ARG CGO_ENABLED=1
ARG REPOSITORY=../storj.io/storj
ARG PACKAGE=storj.io/storj/cmd/satellite
FROM brimstone/golang as build-env
# final stage
FROM alpine
ENV API_KEY= \
CONF_PATH=/root/.storj/satellite/config.yaml \
OVERLAY_URL=redis://redis:6379/?db=0 \
IDENTITY_ADDR=:7777 \
BOOTSTRAP_ADDR=bootstrap.storj.io:8080 \
MOCK_OVERLAY_NODES=
EXPOSE 7776/udp \
7777 \
8080
WORKDIR /app
COPY --from=build-env /app /app/satellite
COPY cmd/satellite/entrypoint /entrypoint
ENTRYPOINT ["/entrypoint"]