Spaces:
Sleeping
Sleeping
| FROM python:3.10-slim | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Fix openenv-core bug: HTTP_422_UNPROCESSABLE_CONTENT → HTTP_422_UNPROCESSABLE_ENTITY | |
| RUN sed -i 's/HTTP_422_UNPROCESSABLE_CONTENT/HTTP_422_UNPROCESSABLE_ENTITY/g' \ | |
| $(python -c "import openenv.core.env_server.http_server as m; print(m.__file__)") | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["python", "server/app.py"] |