CoolFace
Apppublic

aparekh02/overflow-openenv

sourceHugging Faceupdated 7mo agoView on Hugging Face
0likes
Dockerfile23 linesDownload Raw Back to root
1FROM python:3.11-slim2 3WORKDIR /app4 5# Install system deps6RUN apt-get update && \7    apt-get install -y --no-install-recommends git curl && \8    rm -rf /var/lib/apt/lists/*9 10# Copy environment code into a proper package directory11COPY . /app/overflow_env12 13# Install dependencies via pip using requirements.txt14RUN pip install --no-cache-dir -r /app/overflow_env/server/requirements.txt15 16HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \17    CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')" || exit 118 19EXPOSE 800020 21ENV ENABLE_WEB_INTERFACE=true22CMD ["uvicorn", "overflow_env.server.app:app", "--host", "0.0.0.0", "--port", "8000"]23