Skip to content
Snippets Groups Projects
Select Git revision
  • f29e211dcefcdbce4a6ec2dbc3b16546fa7fe0a3
  • master default protected
  • dev
  • appimage
  • fix_gitlab
  • fixappveyor
  • gitlab
  • fix_ci
  • fix_dbus_error
  • fix_ci_osx
  • sakia020
  • fix_travis#1105
  • feature/backend
  • check_uniq_node_by_endpoints
  • qt5.7
  • feature/agent_architecture
  • translations
  • pyqt5.6
  • qtwebengine
  • pyinstaller
  • landscape
  • 0.53.2
  • 0.53.1
  • 0.53.0
  • 0.52.0
  • 0.51.1
  • 0.51.0
  • 0.50.5
  • 0.50.4
  • 0.50.3
  • 0.50.2
  • 0.50.1
  • 0.50.0
  • 0.33.0rc7
  • 0.33.0rc6
  • 0.33.0rc5
  • 0.33.0rc4
  • 0.33.0rc3
  • 0.33.0rc2
  • 0.33.0rc1
  • 0.32.10post1
41 results

README.md

Blame
  • To learn more about this project, read the wiki.
    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/