Usually when I use the Algorand sandbox GitHub - algorand/sandbox: Algorand node sandbox I clone and I start the sandbox on Docker with the following commands:
git clone https://github.com/algorand/sandbox.git cd sandbox ./sandbox up
However, I would like to avoid running these commands every time and create a docker-compose that does the above operations.
I tried to create both the Dockerfile and the docker-compose.
FROM python:3 WORKDIR /docker_sandbox RUN git clone https://github.com/algorand/sandbox.git
version: '3' services: docker_sandbox: stdin_open: true # docker run -i tty: true # docker run -t build: docker_sandbox/ command: ./sandbox/sandbox up
The docker-compose is located in the root directory and the Dockerfile is in the docker_sandbox folder which is located in the root directory.
Running the docker-compose up --build command from the root directory I get the following output: