neurohack-eval-env / Dockerfile
abrar6024's picture
Upload Dockerfile with huggingface_hub
a2c0a2a verified
Raw
History Blame Contribute Delete
438 Bytes
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"]