Skip to content

Commit 637c0cf

Browse files
committed
Introduced Dockerfile for running isolated Open Interpreter, specifying Python 3.11 base image, API key configuration, and installation via pip.
1 parent fefd2db commit 637c0cf

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

examples/Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This is a Dockerfile for using an isolated instance of Open Interpreter
2+
3+
# Start with Python 3.11
4+
FROM python:3.11
5+
6+
# Replace <your_openai_api_key> with your own key
7+
ENV OPENAI_API_KEY <your_openai_api_key>
8+
9+
# Install Open Interpreter
10+
RUN pip install open-interpreter
11+
12+
13+
# To run the container
14+
15+
# docker build -t openinterpreter .
16+
# docker run -d -it --name interpreter-instance openinterpreter interpreter
17+
# docker attach interpreter-instance
18+
19+
# To mount a volume
20+
# docker run -d -it -v /path/on/your/host:/path/in/the/container --name interpreter-instance openinterpreter interpreter

0 commit comments

Comments
 (0)