Browse Source

Initial commit

olinox14 1 year ago
commit
b8ed0d01c9
1 changed files with 29 additions and 0 deletions
  1. 29 0
      README.md

+ 29 - 0
README.md

@@ -0,0 +1,29 @@
+# CV Api
+
+## Build
+
+Build your docker container :
+
+    docker build -t cv2-api .
+
+Run it (name can be changed):
+
+    # On Linux
+    docker run -v "$(pwd)":/var/www/html -p 3001:80 --name cv2-api cv2-api
+
+    # On Windows
+    docker run -d -v "%cd%:/var/www/html" -p 3001:80 --name cv2-api cv2-api
+
+Execute it and install dependencies :
+
+    docker exec -it cv2-api bash
+
+The project will be accessible locally at : http://localhost:3000/
+
+
+#### Run on a built container
+
+If you've already built your container, start it and run with :
+
+    docker start cv2-api
+    docker exec -it cv2-api bash