diff --git a/Makefile b/Makefile index 86cd0e8..2acb784 100644 --- a/Makefile +++ b/Makefile @@ -103,6 +103,7 @@ lint: release-dry-run: $Q @docker run --rm --privileged -e CGO_ENABLED=1 \ + --entrypoint /go/src/$(PKG)/docker/build/entrypoint.sh \ -v /var/run/docker.sock:/var/run/docker.sock \ -v `pwd`:/go/src/$(PKG) \ -w /go/src/$(PKG) \ @@ -115,6 +116,7 @@ release: exit 1;\ fi $Q @docker run --rm --privileged -e CGO_ENABLED=1 --env-file .release-env \ + --entrypoint /go/src/$(PKG)/docker/build/entrypoint.sh \ -v /var/run/docker.sock:/var/run/docker.sock \ -v `pwd`:/go/src/$(PKG) \ -w /go/src/$(PKG) \ diff --git a/docker/build/entrypoint.sh b/docker/build/entrypoint.sh new file mode 100755 index 0000000..4aa17a7 --- /dev/null +++ b/docker/build/entrypoint.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +apt update +apt install -y libpcsclite-dev + +exec /entrypoint.sh $@ \ No newline at end of file