storj/cmd/storagenode/alpha/arm.Dockerfile
Dennis Coyle 88f0d63f33 Adds the AMD64 and ARM Storagenode Dockerfiles and setup scripts (#1544)
* add alpha dockerfile structure

* adds Stefans satelitte to white list
2019-04-03 14:17:55 -06:00

27 lines
596 B
Docker

# build
FROM golang:1.11-alpine as build-env
ADD . /go/src/storj.io/storj
WORKDIR /go/src/storj.io/storj/cmd/storagenode
RUN mkdir config
# final stage
FROM alpine
EXPOSE 28967
ENV STORJ_KADEMLIA_BOOTSTRAP_ADDR="bootstrap.storj.io:8888"
ENV STORJ_METRICS_APP_SUFFIX="-alpha"
ENV STORJ_METRICS_INTERVAL="30m"
ENV STORJ_SERVER_USE_PEER_CA_WHITELIST="true"
ENV COMMAND="run"
WORKDIR /app
COPY --from=build-env /go/src/storj.io/storj/storagenode_linux_arm /app
COPY --from=build-env /go/src/storj.io/storj/cmd/storagenode/config /app/
ENTRYPOINT ./storagenode $COMMAND --config-dir="config"