diff --git a/cli/README.md b/cli/README.md index 78c2db5bf1..5bdb36828a 100644 --- a/cli/README.md +++ b/cli/README.md @@ -89,22 +89,14 @@ If you fancy Docker, you can also run the CLI within a container. Modify the `docker-compose.yml` and add volume. ``cli-data`` volume is mandatory, you can add more volumes for your export directory. -Build the docker image - +Build and run the container in detached mode ```shell -docker build -t ente:latest . +docker-compose up -d --build ``` - Note that [BuildKit](https://docs.docker.com/go/buildkit/) is needed to build this image. If you face this issue, a quick fix is to add `DOCKER_BUILDKIT=1` in front of the build command. -Start the container in detached mode - -```shell -docker-compose up -d -``` - `exec` into the container ```shell docker-compose exec ente-cli /bin/sh -c "./ente-cli version" diff --git a/cli/docker-compose.yml b/cli/docker-compose.yml index d508155115..3eeb6fdc57 100644 --- a/cli/docker-compose.yml +++ b/cli/docker-compose.yml @@ -1,7 +1,9 @@ -version: '3' services: ente-cli: - image: ente-cli:latest + build: + context: . + tags: + - ente-cli:latest command: /bin/sh volumes: # This is mandatory to mount the local directory to the container at /cli-data