1# Make file for building SRA Toolkit docker image 2 3BRANCH?=engineering 4 5.DEFAULT: build 6.PHONY: build push clean scan 7 8build: 9 docker pull alpine:latest 10 docker build --build-arg VDB_BRANCH=${BRANCH} -t ncbi/sra-tools:${VERSION} -f Dockerfile.build-alpine . 11 docker tag ncbi/sra-tools:${VERSION} ncbi/sra-tools:latest 12 13scan: 14 docker scan --file Dockerfile.build-alpine ncbi/sra-tools:${VERSION} 15 16push: 17 docker push ncbi/sra-tools:${VERSION} 18 docker push ncbi/sra-tools:latest 19 20clean: 21 docker image rm ncbi/sra-tools ncbi/sra-tools:${VERSION} 22