disruption-env / Dockerfile
numb3r33's picture
Upload folder using huggingface_hub
1f5e32b verified
raw
history blame contribute delete
457 Bytes
FROM python:3.12-slim
WORKDIR /app
ENV PYTHONPATH=/app
# Install git and uv
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
RUN pip install uv
# Copy your environment code
COPY . /app
# Install dependencies
RUN uv pip install --system fastapi uvicorn pydantic git+https://github.com/meta-pytorch/OpenEnv.git
# Expose port
EXPOSE 7860
# Run the server
CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]