@@ -16,16 +16,21 @@ RUN uv venv
1616COPY ./pyproject.toml ./pyproject.toml
1717COPY ./dev_helper.py ./dev_helper.py
1818
19- # Clone chai code for the human_aware_rl module
20- RUN apt-get update && apt-get install -y git
21- RUN git clone --recursive https://github.com/HumanCompatibleAI/overcooked_ai.git --branch $OVERCOOKED_BRANCH --single-branch /overcooked_ai
19+ # Install necessary packages for build
20+ RUN apt-get update && apt-get install -y git build-essential
21+
22+ # Copy local overcooked_ai directory instead of git cloning
23+ COPY ./overcooked_ai /overcooked_ai
2224
2325# Dummy data_dir so things don't break
2426RUN echo "import os; DATA_DIR=os.path.abspath('.')" >> /overcooked_ai/src/human_aware_rl/data_dir.py
2527
2628# Install server dependencies
2729RUN . .venv/bin/activate && uv pip install -e .
2830
31+ # Install a specific version of Ray that's compatible with the overcooked_ai codebase
32+ RUN . .venv/bin/activate && uv pip install "ray[rllib]>=2.5.0"
33+
2934# Install the cloned overcooked_ai in development mode
3035RUN . .venv/bin/activate && uv pip install -e /overcooked_ai
3136
@@ -35,6 +40,10 @@ RUN if [ "$BUILD_ENV" = "production" ] ; then . .venv/bin/activate && uv pip ins
3540# Install needed packages
3641RUN apt-get update && apt-get install -y \
3742 libgl1-mesa-dev \
43+ libglib2.0-0 \
44+ libsm6 \
45+ libxext6 \
46+ libxrender-dev \
3847 && rm -rf /var/lib/apt/lists/*
3948
4049# Copy over remaining files
@@ -50,4 +59,5 @@ ENV CONF_PATH config.json
5059
5160# Expose port and run the app, using dev_helper to ensure proper Python path
5261EXPOSE 5000
53- CMD [".venv/bin/python" , "-m" , "dev_helper" , "app.py" ]
62+ # CMD [".venv/bin/python", "-m", "dev_helper", "app.py"]
63+ CMD ["uv" , "run" , "app.py" ]
0 commit comments