2b4a1ef17d
* port changes * Merge remote-tracking branch 'upstream/master' * Merge remote-tracking branch 'upstream/master' * Merge remote-tracking branch 'upstream/master' * Merge remote-tracking branch 'upstream/master' * Merge remote-tracking branch 'upstream/master' * Merge branch 'master' of https://github.com/storj/storj * fixing tag name * no idea * testing * changes * testing on travis * testing * changes to travis build * new approach * Merge branch 'master' into coyle/docker-fix
16 lines
501 B
Docker
16 lines
501 B
Docker
# env
|
|
ARG VERSION
|
|
# build
|
|
FROM golang:${VERSION} 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} |