mirror of
https://github.com/kennethreitz/simplemind.git
synced 2026-06-05 06:46:18 +00:00
Add docker-compose build
Purpose: Ensuring that all dependencies are captured both at the container level and the python level.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
OPENAI_API_KEY=
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
FROM python:3.12.0
|
||||
|
||||
RUN apt-get update -y && apt-get upgrade -y
|
||||
RUN pip install --upgrade pip
|
||||
|
||||
COPY requirements.txt /src/requirements.txt
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
ENTRYPOINT ["python", "build.py"]
|
||||
@@ -89,6 +89,11 @@ To get started:
|
||||
3. Make your changes.
|
||||
4. Submit a pull request.
|
||||
|
||||
## Building
|
||||
1. Clone the repository.
|
||||
2. `cd` to the root directory.
|
||||
3. Run `docker-compose up --build`
|
||||
|
||||
## License
|
||||
SimpleMind is licensed under the MIT License.
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
services:
|
||||
simplemind:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
volumes:
|
||||
- ./simplemind:/src/simplemind
|
||||
- ./build.py:/src/build.py
|
||||
env_file:
|
||||
- .env
|
||||
@@ -0,0 +1,4 @@
|
||||
instructor
|
||||
anthropic
|
||||
requests
|
||||
openai
|
||||
Reference in New Issue
Block a user