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/openenv/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# Copy only what's needed for this environment14COPY src/core/ /app/src/core/15COPY envs/coding_env/ /app/envs/coding_env/16 17# Copy README for web interface documentation18COPY envs/coding_env/README.md /app/README.md19 20# Health check21HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \22 CMD curl -f http://localhost:8000/health || exit 123 24# Run the FastAPI server25CMD ["uvicorn", "envs.coding_env.server.app:app", "--host", "0.0.0.0", "--port", "8000"]26 