2018-09-05 21:40:47 +01:00
|
|
|
ARG CGO_ENABLED=1
|
|
|
|
ARG REPOSITORY=../storj.io/storj
|
|
|
|
ARG PACKAGE=storj.io/storj/cmd/uplink
|
|
|
|
FROM brimstone/golang as build-env
|
2018-08-23 16:48:03 +01:00
|
|
|
|
|
|
|
# final stage
|
|
|
|
FROM alpine
|
|
|
|
ENV API_KEY= \
|
|
|
|
SATELLITE_ADDR=
|
|
|
|
EXPOSE 7777
|
|
|
|
|
|
|
|
|
|
|
|
WORKDIR /app
|
2018-09-05 21:40:47 +01:00
|
|
|
COPY --from=build-env /app /app/uplink
|
2018-08-24 21:02:42 +01:00
|
|
|
COPY cmd/uplink/entrypoint /entrypoint
|
2018-08-23 16:48:03 +01:00
|
|
|
ENTRYPOINT ["/entrypoint"]
|