mutationgym-env / Dockerfile
paradox44's picture
Disable web UI and use env factory
75aaabb verified
Raw
History Blame Contribute Delete
422 Bytes
ARG BASE_IMAGE=ghcr.io/meta-pytorch/openenv-base:latest
FROM ${BASE_IMAGE}
WORKDIR /app
COPY . /app
RUN pip install -U pip
RUN pip install -e .
ENV ENABLE_WEB_INTERFACE=false
ENV PYTHONUNBUFFERED=1
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
CMD curl --fail http://localhost:8000/health || exit 1
CMD ["uvicorn", "mutationgym_env.server.app:app", "--host", "0.0.0.0", "--port", "8000"]