storj/cmd/overlay/Dockerfile
Dennis Coyle 281d037468
hardcode version (#111)
* hardcode version
2018-06-22 16:30:08 -04:00

13 lines
469 B
Docker

FROM golang:1.10 AS build-env
COPY . /go/src/storj.io/storj
RUN go get -u golang.org/x/vgo
RUN cd /go/src/storj.io/storj && vgo install ./...
RUN cd /go/src/storj.io/storj/cmd/overlay && vgo build -o overlay
# final stage
FROM alpine
WORKDIR /app
COPY --from=build-env /go/src/storj.io/storj/cmd/overlay/overlay /app/
ENTRYPOINT ./overlay -redisAddress=${REDIS_ADDRESS} -redisPassword=${REDIS_PASSWORD} -db=${REDIS_DB} -srvPort=${OVERLAY_PORT} -httpPort=${HTTP_PORT}