2018-09-05 21:40:47 +01:00
|
|
|
ARG CGO_ENABLED=1
|
|
|
|
ARG REPOSITORY=../storj.io/storj
|
|
|
|
ARG PACKAGE=storj.io/storj/cmd/storagenode
|
2019-02-28 20:12:52 +00:00
|
|
|
FROM storjlabs/golang as storagenode-build-env
|
2018-07-19 20:42:50 +01:00
|
|
|
|
|
|
|
# final stage
|
|
|
|
FROM alpine
|
2018-12-17 16:54:32 +00:00
|
|
|
ENV CONF_PATH=/root/.local/share/storj/storagenode \
|
2019-02-28 20:12:52 +00:00
|
|
|
IDENT_PATH=/root/.local/share/storj/identity/storagenode \
|
|
|
|
CERT_DIFFICULTY=30 \
|
2018-08-23 16:48:03 +01:00
|
|
|
SATELLITE_ADDR=
|
2018-12-21 16:56:57 +00:00
|
|
|
EXPOSE 28967
|
2018-07-19 20:42:50 +01:00
|
|
|
WORKDIR /app
|
2018-12-21 16:56:57 +00:00
|
|
|
VOLUME /root/.local/share/storj/storagenode
|
2019-04-08 18:06:01 +01:00
|
|
|
COPY resources/certs.pem /etc/ssl/certs/ca-certificates.crt
|
2019-02-28 20:12:52 +00:00
|
|
|
COPY --from=storagenode-build-env /app /app/storagenode
|
2018-08-25 02:52:58 +01:00
|
|
|
COPY cmd/storagenode/entrypoint /entrypoint
|
2018-08-23 16:48:03 +01:00
|
|
|
ENTRYPOINT ["/entrypoint"]
|