Skip to content
Snippets Groups Projects
Select Git revision
  • 06f9c34f5cd45c78c1cc5b522ab16b7ddad5f63f
  • master default protected
  • 270-parametrage-de-la-gtest
  • 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
  • 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

Dockerfile

Blame
  • Dockerfile 1.44 KiB
    # ------------------------------------------------------------------------------
    # Build Stage
    # ------------------------------------------------------------------------------
    
    # Building for Debian buster because we need the binary to be compatible
    # with the image paritytech/ci-linux:production (currently based on
    # debian:buster-slim) used by the gitlab CI
    FROM rust:1-buster as build
    WORKDIR /root
    
    RUN apt-get update && \
        DEBIAN_FRONTEND=noninteractive apt-get install -y \
            clang
    
    # Copy source tree
    COPY . .
    
    # build duniter
    ARG threads=1
    RUN test -x build/duniter || \
        ( \
            CARGO_PROFILE_RELEASE_LTO="true" \
                cargo build --release -j $threads && \
            mkdir -p build && \
            mv target/release/duniter build/ \
        )
    
    # ------------------------------------------------------------------------------
    # Final Stage
    # ------------------------------------------------------------------------------
    
    FROM debian:buster-slim
    
    LABEL maintainer="Gilles Filippini <gilles.filippini@pini.fr>"
    LABEL version="0.0.0"
    LABEL description="Crypto-currency software (based on Substrate framework) to operate Ğ1 libre currency"
    
    RUN adduser --home /var/lib/duniter duniter
    
    # Configuration
    # rpc, rpc-ws, p2p, telemetry
    EXPOSE 9933 9944 30333 9615
    VOLUME /var/lib/duniter
    ENTRYPOINT ["docker-entrypoint"]
    USER duniter
    
    # Intall
    COPY --from=build /root/build/duniter /usr/local/bin/duniter
    COPY docker/docker-entrypoint /usr/local/bin/