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 envtorch base image8# Built from: docker build -t envtorch-base:latest -f src/core/containers/images/Dockerfile .9FROM envtorch-base:latest10 11# Install smolagents for code execution12RUN pip install --no-cache-dir smolagents13 14# Copy only what's needed for this environment15COPY src/core/ /app/src/core/16COPY src/envs/coding_env/ /app/src/envs/coding_env/17 18# Health check19HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \20 CMD curl -f http://localhost:8000/health || exit 121 22# Run the FastAPI server23CMD ["uvicorn", "envs.coding_env.server.app:app", "--host", "0.0.0.0", "--port", "8000"]24 