Skip to content

Instantly share code, notes, and snippets.

@seppo0010
Forked from eldondev/Dockerfile
Created April 23, 2017 13:46
Show Gist options
  • Save seppo0010/ce91c78059da866b7ed9713df9688ae0 to your computer and use it in GitHub Desktop.
Save seppo0010/ce91c78059da866b7ed9713df9688ae0 to your computer and use it in GitHub Desktop.
zxing dockerfile
FROM java
RUN wget https://oss.sonatype.org/content/repositories/snapshots/com/google/zxing/javase/3.2.2-SNAPSHOT/javase-3.2.2-20151101.162926-3.jar
RUN wget https://oss.sonatype.org/content/repositories/snapshots/com/google/zxing/core/3.2.2-SNAPSHOT/core-3.2.2-20151101.162918-3.jar
RUN wget https://repo1.maven.org/maven2/com/beust/jcommander/1.48/jcommander-1.48.jar
ENTRYPOINT ["java","-cp", "core-3.2.2-20151101.162918-3.jar:javase-3.2.2-20151101.162926-3.jar:jcommander-1.48.jar", "com.google.zxing.client.j2se.CommandLineRunner"]
#!/bin/sh
#Run like this
docker build -t zxing .
docker run --net=none -v /IMG.jpg:/IMG.jpg --rm zxing --try_harder file:///IMG.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment