mirror of
https://github.com/OpenBMB/ChatDev.git
synced 2024-11-07 18:40:13 +03:00
22 lines
598 B
Docker
22 lines
598 B
Docker
# 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 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 a port if the project has any web-based features
|
|
EXPOSE 8080
|
|
|
|
# Set an entry point that runs a shell for interactive mode
|
|
ENTRYPOINT ["/bin/bash"]
|