Skip to content
  • contrem's avatar
    dockerfile: improvements · a5637349
    contrem authored
    - multi-stage build to reduce finale image size
    - reorganize to avoid cache problems
    - build args to customize and invalidate specific cache layers for updates
    
    Example using some optional build arguments:
    
    docker build \
        --build-arg SOLO_VERSION=1.0.3.5-62570e11 \
        --build-arg GIT_SOURCE=https://gitlab.com/solo-project/solo.git \
        --build-arg GIT_BRANCH=master \
        --build-arg MAKE_THREADS=16 \
        --tag solod:1.0.3.5 \
        .
    a5637349