-
-
Save urbanfi/f2f52ce4092bdb763cfd66b15f02d900 to your computer and use it in GitHub Desktop.
zxing dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM java | |
| RUN wget https://oss.sonatype.org/content/repositories/snapshots/com/google/zxing/javase/3.2.2-SNAPSHOT/javase-3.2.2-20160624.203821-4.jar | |
| RUN wget https://oss.sonatype.org/content/repositories/snapshots/com/google/zxing/core/3.2.2-SNAPSHOT/core-3.2.2-20160624.203811-4.jar | |
| RUN wget https://repo1.maven.org/maven2/com/beust/jcommander/1.48/jcommander-1.48.jar | |
| ENTRYPOINT ["java","-cp", "core-3.2.2-20160624.203811-4.jar:javase-3.2.2-20160624.203821-4.jar:jcommander-1.48.jar", "com.google.zxing.client.j2se.CommandLineRunner"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| #Run like this | |
| set -e | |
| if [ ! -f IMG.jpg ] ; then echo "The image file to convert doesn't exist!" && exit 1 ; fi | |
| docker build -t zxing . | |
| docker run --net=none -v $PWD/IMG.jpg:/IMG.jpg --rm zxing --try_harder file:///IMG.jpg |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
updated zxing version in Dockerfile