5224e92646
* If the directory is somehow persistent, but the config file itself isn't created yet, create it * Other improvements to thd storagenode Docker image * Other improvements to thd satellite Docker image * Other improvements to thd gateway Docker image * Other improvements to thd uplink Docker image
16 lines
414 B
Docker
16 lines
414 B
Docker
ARG CGO_ENABLED=1
|
|
ARG REPOSITORY=../storj.io/storj
|
|
ARG PACKAGE=storj.io/storj/cmd/storagenode
|
|
FROM storjlabs/golang as build-env
|
|
|
|
# final stage
|
|
FROM alpine
|
|
ENV CONF_PATH=/root/.local/share/storj/storagenode \
|
|
SATELLITE_ADDR=
|
|
EXPOSE 28967
|
|
WORKDIR /app
|
|
VOLUME /root/.local/share/storj/storagenode
|
|
COPY --from=build-env /app /app/storagenode
|
|
COPY cmd/storagenode/entrypoint /entrypoint
|
|
ENTRYPOINT ["/entrypoint"]
|