Skip to content
Snippets Groups Projects
Select Git revision
  • c58096a59aa815db687e3d06cc0d8e21ce3485db
  • master default protected
  • network/gdev-800 protected
  • cgeek/issue-297-cpu
  • gdev-800-tests
  • update-docker-compose-rpc-squid-names
  • fix-252
  • 1000i100-test
  • hugo/tmp-0.9.1
  • network/gdev-803 protected
  • hugo/endpoint-gossip
  • network/gdev-802 protected
  • hugo/distance-precompute
  • network/gdev-900 protected
  • tuxmain/anonymous-tx
  • debug/podman
  • hugo/195-doc
  • hugo/195-graphql-schema
  • hugo-tmp-dockerfile-cache
  • release/client-800.2 protected
  • release/runtime-800 protected
  • gdev-900-0.10.1 protected
  • gdev-900-0.10.0 protected
  • gdev-900-0.9.2 protected
  • gdev-800-0.8.0 protected
  • gdev-900-0.9.1 protected
  • gdev-900-0.9.0 protected
  • gdev-803 protected
  • gdev-802 protected
  • runtime-801 protected
  • gdev-800 protected
  • runtime-800-bis protected
  • runtime-800 protected
  • runtime-800-backup protected
  • runtime-701 protected
  • runtime-700 protected
  • runtime-600 protected
  • runtime-500 protected
  • v0.4.1 protected
  • runtime-401 protected
  • v0.4.0 protected
41 results

duniter-debug.Dockerfile

Blame
  • duniter-debug.Dockerfile 967 B
    # Duniter debug node
    #
    # Requires to run from repository root and to copy the binary in the build folder
    # (part of the CI workflow)
    
    FROM docker.io/library/ubuntu:20.04 AS builder
    
    RUN apt-get update && apt-get install -y ca-certificates && update-ca-certificates
    
    FROM debian:buster-slim
    LABEL maintainer "elois@duniter.org"
    LABEL description="Binary for duniter debug node"
    
    RUN useradd -m -u 1000 -U -s /bin/sh -d /duniter duniter && \
    	mkdir -p /duniter/.local/share && \
    	mkdir /data && \
    	chown -R duniter:duniter /data && \
    	ln -s /data /duniter/.local/share/duniter && \
    	rm -rf /usr/bin /usr/sbin
    
    COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
    
    USER duniter
    
    COPY --chown=duniter build/duniter /duniter/duniter
    RUN chmod uog+x /duniter/duniter
    
    # 30333 for p2p
    # 9933 for RPC call
    # 9944 for Websocket
    # 9615 for Prometheus (metrics)
    EXPOSE 30333 9933 9944 9615
    
    VOLUME ["/data"]
    
    ENTRYPOINT ["/duniter/duniter"]