Add .dockerignore and Makefile commands to support docker

This commit is contained in:
PThorpe92
2025-07-30 23:58:38 -04:00
parent baa424bff6
commit 9cba19309e
3 changed files with 9 additions and 1 deletions

1
.dockerignore Normal file
View File

@@ -0,0 +1 @@
*target

View File

@@ -150,3 +150,9 @@ bench-exclude-tpc-h:
cargo bench $$benchmarks; \ cargo bench $$benchmarks; \
fi fi
.PHONY: bench-exclude-tpc-h .PHONY: bench-exclude-tpc-h
docker-cli-build:
docker build -f Dockerfile.cli -t turso-cli .
docker-cli-run:
docker run -it -v ./:/app turso-cli

View File

@@ -91,7 +91,8 @@ cargo run
If you like docker, we got you covered. Simply run this in the root folder: If you like docker, we got you covered. Simply run this in the root folder:
```bash ```bash
docker build -f Dockerfile.cli -t turso-cli . && docker run -it turso-cli make docker-cli-build && \
make docker-cli-run
``` ```
### MCP Server Mode ### MCP Server Mode