Browse Source

add docker to readme

Tim Römisch 8 months ago
parent
commit
7013b96ca4
2 changed files with 8 additions and 0 deletions
  1. 8 0
      README.md
  2. 0 0
      config/test

+ 8 - 0
README.md

@@ -34,6 +34,14 @@ curl https://barcodeapi.org/api/128/abc123
 curl https://barcodeapi.org/api/qr/abc123
 ```
 
+#### Docker Container
+
+To build the image run:  
+`docker build -t barcodeAPIServer .`  
+
+And to run the container:  
+`docker run -p 8080:8080 -v $(pwd)/config:/config barcodeAPIServer`
+
 ## Third-Party
 
 BarcodeAPI.org is only made possible with the use of third-party software.

+ 0 - 0
config/test