Metropolis Microservices/RidgeRun Services/PTZ: Difference between revisions

Line 76: Line 76:
Then build the container image running the the following command from the folder containing the Dockerfile and context directory:
Then build the container image running the the following command from the folder containing the Dockerfile and context directory:


<syntaxhighlight lang="bash">
<pre>
sudo docker build \
sudo docker build \
--network=host \
--network=host \
-f Dockerfile \
-f Dockerfile \
-t ridgerun/ptz-service:latest ptz-context/
-t ridgerun/ptz-service:latest ptz-context/
</syntaxhighlight>
</pre>


Change '''ptz-context''' to your context's path and the tag (-t) to the name you want to give to your image.
Change '''ptz-context''' to your context's path and the tag (-t) to the name you want to give to your image.