Spaces:
Sleeping
Sleeping
File size: 707 Bytes
fdce872 9497e48 fdce872 9497e48 fdce872 054a3c3 fdce872 9497e48 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | FROM python:3.11-slim
RUN useradd -m -s /bin/bash user2
# Pre-install ALL dependencies at build time.
# They are uninstalled at episode reset to simulate "broken" state.
# This means zero outbound PyPI calls at runtime.
RUN pip install flask pytest pylint requests
# Install OpenEnv core and server dependencies
RUN pip install openenv-core[core]>=0.2.2 gradio uvicorn fastapi
WORKDIR /home/user2
# Copy all project files
COPY *.py /home/user2/
COPY models.py /home/user2/
COPY server/ /home/user2/server/
COPY openenv.yaml /home/user2/
COPY requirements.txt /home/user2/
COPY README.md /home/user2/
EXPOSE 7860
ENV ENABLE_WEB_INTERFACE=true
CMD ["python", "server/app.py"]
|