In this tutorial I use sudo in front of Docker. My user of choice is not in docker group. If you want to omit sudo then please add your user to docker group.
1. Cloning the project from Github:
Make a directory to host the git clone:
mkdir search_app
cd search_app
Actual cloning:
git clone https://github.com/postman721/Search_engines.git
Get the binary and rename it to be a bit nicer:
mv Search_engines/executables/Search\ engines-linux.zip .
unzip ‘Search engines-linux.zip’
mv ‘Search engines-linux’ search_app
2. Making a Dockerfile
echo “
FROM debian:11-slim
RUN apt update && apt upgrade -y && apt-get clean
COPY search_app /
RUN chmod +x /search_app
CMD /search_app” > Dockerfile
3.Testing the Docker image on a local machine
sudo docker build -t test .
sudo docker run test
4.Create Azure Container registry
Continue reading