2018-06-22 21:30:08 +01:00
|
|
|
FROM golang:1.10 AS build-env
|
2018-06-21 20:36:39 +01:00
|
|
|
COPY . /go/src/storj.io/storj
|
2018-06-22 21:17:37 +01:00
|
|
|
RUN go get -u golang.org/x/vgo
|
2018-06-21 20:36:39 +01:00
|
|
|
RUN cd /go/src/storj.io/storj && vgo install ./...
|
|
|
|
RUN cd /go/src/storj.io/storj/cmd/overlay && vgo build -o overlay
|
2018-06-05 22:06:37 +01:00
|
|
|
|
|
|
|
|
|
|
|
# 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}
|