Skip to content

Commit 2c7041c

Browse files
author
Sylvain Fraïssé
committed
chore: add a pre_build hooks
This is a docker hub hooks to generate the jar file before creating the docker image
1 parent 868c523 commit 2c7041c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

hooks/pre_build

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
echo "=> Building the java compiler jar"
3+
docker run \
4+
-v $(pwd):/usr/src/java-compiler \
5+
-w /usr/src/java-compiler \
6+
maven:3 \
7+
mvn clean package

0 commit comments

Comments
 (0)