LocalAI-frontend icon indicating copy to clipboard operation
LocalAI-frontend copied to clipboard

Getting started with Docker is incomplete

Open jonmotos opened this issue 1 year ago • 4 comments

You provide a sample docker-compose (nice!), and say that is the easy way to get started, however your only step is to copy the sample docker-compose to the local-ai directory... And that example does not include any image to pull, or the Dockerfile from which to build - the way it is written I believe is only going to build the api again?

I'm sure it's an easy step, but I'm not sure what the proper step should be to get the docker compose working.

jonmotos avatar Jun 07 '23 22:06 jonmotos

You provide a sample docker-compose (nice!), and say that is the easy way to get started, however your only step is to copy the sample docker-compose to the local-ai directory... And that example does not include any image to pull, or the Dockerfile from which to build - the way it is written I believe is only going to build the api again?

I'm sure it's an easy step, but I'm not sure what the proper step should be to get the docker compose working.

The sample docker compose does refer to the Dockerfile, but yes the images are there on LocalAI's page where the rest of the images are hosted, I will update it accordingly, thanks for bringing the oversight to notice!

Dhruvgera avatar Jun 10 '23 10:06 Dhruvgera

there's no sample .env file.....

johndpope avatar Aug 31 '23 02:08 johndpope

I had the same issue, First I renamed the duplicate files in the localAI folder to something like localai.Dockerfile localai.otherfiles, then I copied the other files from the frontend folder into the main localAI folder and ran the build command and it worked. I used the existing .env file, perhaps thats why it can't find my models....

partisansb avatar Jan 20 '24 12:01 partisansb

I had the same issue, First I renamed the duplicate files in the localAI folder to something like localai.Dockerfile localai.otherfiles, then I copied the other files from the frontend folder into the main localAI folder and ran the build command and it worked. I used the existing .env file, perhaps thats why it can't find my models....

The models are supposed to be in the /models dir as per the localAI repo! It will just pick them up, or you can change the path in the sample docker compose.

Also, the project will be recieving regular updates soon, I am back to maintaining this :)

Dhruvgera avatar Jan 20 '24 15:01 Dhruvgera