281d037468
* hardcode version
13 lines
469 B
Docker
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} |