Skip to content
Snippets Groups Projects
Commit a58de59d authored by Gilles Filippini's avatar Gilles Filippini
Browse files

build (docker): run as unpriviledged user duniter

Fix #23.
parent 925d5cd5
No related branches found
No related tags found
No related merge requests found
...@@ -35,12 +35,15 @@ LABEL maintainer="Gilles Filippini <gilles.filippini@pini.fr>" ...@@ -35,12 +35,15 @@ LABEL maintainer="Gilles Filippini <gilles.filippini@pini.fr>"
LABEL version="0.0.0" LABEL version="0.0.0"
LABEL description="Crypto-currency software (based on Substrate framework) to operate Ğ1 libre currency" LABEL description="Crypto-currency software (based on Substrate framework) to operate Ğ1 libre currency"
# Intall RUN adduser --home /var/lib/duniter duniter
COPY --from=build /root/build/duniter /usr/local/bin/duniter
COPY docker/docker-entrypoint /usr/local/bin/
# Configuration # Configuration
# rpc, rpc-ws, p2p, telemetry # rpc, rpc-ws, p2p, telemetry
EXPOSE 9933 9944 30333 9615 EXPOSE 9933 9944 30333 9615
VOLUME /var/lib/duniter VOLUME /var/lib/duniter
ENTRYPOINT ["docker-entrypoint"] ENTRYPOINT ["docker-entrypoint"]
USER duniter
# Intall
COPY --from=build /root/build/duniter /usr/local/bin/duniter
COPY docker/docker-entrypoint /usr/local/bin/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment