2023-10-21 15:45:25 +03:00
|
|
|
# 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
|
|
|
|
|
2023-10-26 06:31:40 +03:00
|
|
|
# Install necessary libraries for GUI support
|
|
|
|
RUN apt-get update && apt-get install -y python3-tk x11-apps
|
|
|
|
|
2023-10-21 15:45:25 +03:00
|
|
|
# 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
|
|
|
|
|
2023-12-18 09:36:34 +03:00
|
|
|
# Expose the port for visualizer/app.py
|
2023-10-21 16:50:15 +03:00
|
|
|
EXPOSE 8000
|
2023-10-21 15:45:25 +03:00
|
|
|
|
|
|
|
# Set an entry point that runs a shell for interactive mode
|
2023-10-26 06:31:40 +03:00
|
|
|
ENTRYPOINT ["/bin/bash"]
|