CoolFace
Apppublic

SidhaGarg/Cloud-DevOps-RLEnv

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
Dockerfile30 linesDownload Raw Back to root
1# Use a lightweight, stable Python image2FROM python:3.10-slim3 4# Set working directory5WORKDIR /app6 7# Install dependencies first to maximize Docker cache reuse across code edits8COPY requirements.txt .9RUN pip install -r requirements.txt10 11# Copy project files12COPY pyproject.toml .13# OpenEnv /web reads /app/README.md first, so map web docs there explicitly.14COPY WEB_README.md ./README.md15COPY openenv.yaml .16COPY models.py .17COPY env.py .18COPY __init__.py .19COPY client.py .20COPY server ./server21 22# Install local package metadata/entrypoints without reinstalling dependencies23RUN pip install --no-deps .24 25# Expose the standard OpenEnv port26EXPOSE 800027 28# Start the FastAPI/OpenEnv app directly (openenv serve is not implemented in v0.2.3)29CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "8000"]30