feat: add support for arm64 platform in Docker commands and update INSTALL_TYPE variable in docker-compose
This commit is contained in:
@@ -142,6 +142,9 @@ docker pull unclecode/crawl4ai:gpu # GPU-enabled version
|
|||||||
# Run the container
|
# Run the container
|
||||||
docker run -p 11235:11235 unclecode/crawl4ai:basic # Replace 'basic' with your chosen version
|
docker run -p 11235:11235 unclecode/crawl4ai:basic # Replace 'basic' with your chosen version
|
||||||
|
|
||||||
|
# In case you want to set platform to arm64
|
||||||
|
docker run --platform linux/arm64 -p 11235:11235 unclecode/crawl4ai:basic
|
||||||
|
|
||||||
# In case to allocate more shared memory for the container
|
# In case to allocate more shared memory for the container
|
||||||
docker run --shm-size=2gb -p 11235:11235 unclecode/crawl4ai:basic
|
docker run --shm-size=2gb -p 11235:11235 unclecode/crawl4ai:basic
|
||||||
```
|
```
|
||||||
@@ -158,6 +161,12 @@ docker build -t crawl4ai:local \
|
|||||||
--build-arg INSTALL_TYPE=basic \ # Options: basic, all
|
--build-arg INSTALL_TYPE=basic \ # Options: basic, all
|
||||||
.
|
.
|
||||||
|
|
||||||
|
# In case you want to set platform to arm64
|
||||||
|
docker build -t crawl4ai:local \
|
||||||
|
--build-arg INSTALL_TYPE=basic \ # Options: basic, all
|
||||||
|
--platform linux/arm64 \
|
||||||
|
.
|
||||||
|
|
||||||
# Run your local build
|
# Run your local build
|
||||||
docker run -p 11235:11235 crawl4ai:local
|
docker run -p 11235:11235 crawl4ai:local
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
args:
|
args:
|
||||||
PYTHON_VERSION: 3.10
|
PYTHON_VERSION: "3.10"
|
||||||
INSTALL_TYPE: all
|
INSTALL_TYPE: ${INSTALL_TYPE:-basic}
|
||||||
ENABLE_GPU: false
|
ENABLE_GPU: false
|
||||||
profiles: ["local"]
|
profiles: ["local"]
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
Reference in New Issue
Block a user