forked from OpenBMB/ChatDev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (17 loc) · 687 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Start with a Python 3.9 base image
FROM python:3.9-slim
# Set the working directory in the container
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . /app
# Install necessary libraries for GUI support
RUN apt-get update && apt-get install -y python3-tk x11-apps
# Install the project dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Set the environment variable for OpenAI API key
# (you'll need to provide the actual key when running the container)
ENV OPENAI_API_KEY=your_OpenAI_API_key
# Expose the port for visualizer/app.py
EXPOSE 8000
# Set an entry point that runs a shell for interactive mode
ENTRYPOINT ["/bin/bash"]