45a3c2e974
* pkg/provider: with pkg/provider merged, make a single heavy client binary and deprecate old services * add setup to gw binary too * captplanet: output what addresses everything is listening on * revert peertls/io_util changes * define config flag across all commands * use trimsuffix
26 lines
742 B
Docker
26 lines
742 B
Docker
FROM golang:1.10-alpine AS build-env
|
|
RUN apk update && \
|
|
apk upgrade && \
|
|
apk add curl && \
|
|
apk add git
|
|
RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
|
COPY . /go/src/storj.io/storj
|
|
RUN cd /go/src/storj.io/storj && dep ensure -vendor-only
|
|
RUN cd /go/src/storj.io/storj/cmd/hc && go build -o hc
|
|
|
|
|
|
# final stage
|
|
FROM alpine
|
|
ENV REDIS_ADDRESS= \
|
|
REDIS_PASSWORD= \
|
|
REDIS_DB=0 \
|
|
OVERLAY_PORT=7070 \
|
|
HTTP_PORT=8080
|
|
WORKDIR /app
|
|
COPY --from=build-env /go/src/storj.io/storj/cmd/hc/hc /app/
|
|
EXPOSE 8081/udp \
|
|
8080 \
|
|
7070
|
|
|
|
ENTRYPOINT ./hc --pointer-db.database-url redis://:${REDIS_PASSWORD}@${REDIS_ADDRESS}/?db=${REDIS_DB} --debug.addr=${HTTP_PORT} --identity.address=${OVERLAY_PORT}
|