2019-06-18 15:29:22 +01:00
|
|
|
ARG DOCKER_ARCH
|
|
|
|
FROM ${DOCKER_ARCH:-amd64}/alpine
|
|
|
|
ARG TAG
|
|
|
|
ARG GOARCH
|
|
|
|
ENV GOARCH ${GOARCH}
|
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
|
2019-06-18 15:29:22 +01:00
|
|
|
COPY release/${TAG}/gateway_linux_${GOARCH:-amd64} /app/gateway
|
2018-12-04 21:10:23 +00:00
|
|
|
COPY cmd/gateway/entrypoint /entrypoint
|
|
|
|
ENTRYPOINT ["/entrypoint"]
|
2019-06-18 15:29:22 +01:00
|
|
|
ENV CONF_PATH=/root/.local/share/storj/gateway \
|
|
|
|
API_KEY= \
|
|
|
|
SATELLITE_ADDR=
|