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:
Kurt Heiden
2024-10-28 11:21:10 -06:00
parent 146467e117
commit 06b38f8c94
6 changed files with 33 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
OPENAI_API_KEY=
+12
View File
@@ -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"]
+5
View File
@@ -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.
+1
View File
@@ -0,0 +1 @@
print('Build successful.')
+10
View File
@@ -0,0 +1,10 @@
services:
simplemind:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./simplemind:/src/simplemind
- ./build.py:/src/build.py
env_file:
- .env
+4
View File
@@ -0,0 +1,4 @@
instructor
anthropic
requests
openai