openenv/coding_env
21
1# Copyright (c) Meta Platforms, Inc. and affiliates.2# All rights reserved.3#4# This source code is licensed under the BSD-style license found in the5# LICENSE file in the root directory of this source tree.6 7# Use the standard openenv base image8# Built from: docker build -t openenv-base:latest -f src/core/containers/images/Dockerfile .9# In GitHub Actions, this is overridden to use the GHCR base image10ARG BASE_IMAGE=openenv-base:latest11FROM ${BASE_IMAGE}12 13# Install dependencies14COPY src/envs/coding_env/server/requirements.txt /tmp/requirements.txt15RUN pip install --no-cache-dir -r /tmp/requirements.txt && rm /tmp/requirements.txt16 17# Copy only what's needed for this environment18COPY src/core/ /app/src/core/19COPY src/envs/coding_env/ /app/src/envs/coding_env/20 21# Copy README for web interface documentation22COPY src/envs/coding_env/README.md /app/README.md23 24# Health check25HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \26 CMD curl -f http://localhost:8000/health || exit 127 28# Run the FastAPI server29CMD ["uvicorn", "envs.coding_env.server.app:app", "--host", "0.0.0.0", "--port", "8000"]30 