openenv_hack / Dockerfile
thomasm6m6's picture
Switch Space to minimal OpenEnv demo
7bbdee4 verified
raw
history blame
612 Bytes
FROM python:3.11-slim
WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV ENABLE_WEB_INTERFACE=true
RUN apt-get update && apt-get install -y --no-install-recommends curl \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir "openenv-core[core]==0.2.1" "uvicorn>=0.35.0"
COPY README.md /app/README.md
COPY minimal_space_app.py /app/minimal_space_app.py
HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=10 \
CMD curl -f http://localhost:8000/health || exit 1
CMD ["python", "-m", "uvicorn", "minimal_space_app:app", "--host", "0.0.0.0", "--port", "8000"]