2018-12-04 21:10:23 +00:00
|
|
|
ARG CGO_ENABLED=1
|
|
|
|
ARG REPOSITORY=../storj.io/storj
|
|
|
|
ARG PACKAGE=storj.io/storj/cmd/gateway
|
|
|
|
FROM storjlabs/golang as build-env
|
|
|
|
|
|
|
|
# final stage
|
|
|
|
FROM alpine
|
2019-02-04 15:50:06 +00:00
|
|
|
ENV CONF_PATH=/root/.local/share/storj/gateway \
|
2018-12-04 21:10:23 +00:00
|
|
|
API_KEY= \
|
|
|
|
SATELLITE_ADDR=
|
2018-12-21 16:56:57 +00:00
|
|
|
EXPOSE 7777
|
2018-12-04 21:10:23 +00:00
|
|
|
WORKDIR /app
|
2019-02-04 15:50:06 +00:00
|
|
|
VOLUME /root/.local/share/storj/gateway
|
2018-12-04 21:10:23 +00:00
|
|
|
COPY --from=build-env /app /app/gateway
|
|
|
|
COPY cmd/gateway/entrypoint /entrypoint
|
|
|
|
ENTRYPOINT ["/entrypoint"]
|