build: fix docker build

Update Dockerfile and Makefile to build a zot docker image
This commit is contained in:
Ramkumar Chinchani
2020-11-05 17:39:14 -08:00
parent b80b7d2361
commit 09c633ad91
3 changed files with 20 additions and 19 deletions
+5 -2
View File
@@ -52,9 +52,12 @@ run: binary test
.PHONY: binary-container
binary-container:
${CONTAINER_RUNTIME} build ${BUILD_ARGS} -f Dockerfile.build -t zot-build:latest .
${CONTAINER_RUNTIME} build ${BUILD_ARGS} -f Dockerfile -t zot-build:latest .
.PHONY: run-container
run-container:
${CONTAINER_RUNTIME} run --rm --security-opt label=disable -v $$(pwd):/go/src/github.com/anuvu/zot \
zot-build:latest make
zot-build:latest
.PHONY: binary-stacker
binary-stacker: