Skip to content

Commit

Permalink
Add custom entrypoint to install dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
maraino committed Jun 25, 2022
1 parent eee2b96 commit 7d313ac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand All @@ -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) \
Expand Down
8 changes: 8 additions & 0 deletions docker/build/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

set -e

apt update
apt install -y libpcsclite-dev

exec /entrypoint.sh $@

0 comments on commit 7d313ac

Please sign in to comment.