diff --git a/.github/workflows/publish-docker-image.yml b/.github/workflows/publish-docker-image.yml index 4563687d..158016a9 100644 --- a/.github/workflows/publish-docker-image.yml +++ b/.github/workflows/publish-docker-image.yml @@ -7,6 +7,11 @@ on: description: 'Docker tag' required: true type: string + baseImage: + description: 'Base image' + required: true + default: 'wavesplatform/waves:1.5.7' + type: string env: IMAGE_NAME: ghcr.io/${{ github.repository }} @@ -39,6 +44,7 @@ jobs: images: ${{ env.IMAGE_NAME }} flavor: latest=false tags: type=raw,value=${{ inputs.dockerTag }} + build-args: baseImage=${{ inputs.baseImage }} labels: | org.opencontainers.image.source=https://github.com/${{ github.repository }} org.opencontainers.image.licenses=MIT diff --git a/docker/Dockerfile b/docker/Dockerfile index 2e928d1d..d62a201a 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,3 +1,4 @@ -FROM wavesplatform/wavesnode:1.5.7 +ARG baseImage=wavesplatform/wavesnode:1.5.7 +FROM $baseImage COPY target /tmp/ RUN tar zxvf /tmp/consensus-client.tgz -C $WAVES_INSTALL_PATH --strip-components=1