Skip to content

Building the Docker Images

Krishnakanth Alagiri edited this page May 12, 2024 · 5 revisions

Building the Images 🐳

To build the Docker images, follow these steps:

  1. Navigate to the directory containing your Dockerfiles:

    cd ./Personal Assistant
  2. Build the base (core), Chat and API image:

    docker build -f Dockerfile.base -t ghcr.io/bearlike/meeseeks-base:dev .
    docker build -f Dockerfile.chat --build-arg BASE_IMAGE=ghcr.io/bearlike/meeseeks-base:dev -t ghcr.io/bearlike/meeseeks-chat:dev .
    docker build -f Dockerfile.api  --build-arg BASE_IMAGE=ghcr.io/bearlike/meeseeks-base:dev -t ghcr.io/bearlike/meeseeks-api:dev .

Running the Docker Images πŸƒβ€β™‚οΈ

# Run the chat application 
docker run --env-file docker-meeseeks.env --add-host=host.docker.internal:host-gateway -p 8502:8502 ghcr.io/bearlike/meeseeks-chat:dev

# Run the API 
docker run --env-file docker-meeseeks.env -p 5123:5123 --add-host=host.docker.internal:host-gateway ghcr.io/bearlike/meeseeks-api:dev 
# View Swagger docs at http://hostname_or_ip:5123/swagger-ui/