You can configure the sandbox environment using a Dockerfile. This defines your development environment configuration, including dependencies, build commands, and runtime requirements.
Kiro autonomous agent looks for a Dockerfile in the root of your repository. If found, the agent automatically configures the sandbox based on these specifications, ensuring the environment matches your project's requirements.
Only publicly available container images are supported. Private registry images and private repositories cannot be accessed by the sandbox.
You can use a standard Dockerfile to configure the sandbox environment. The agent will build and use the Docker image defined in your Dockerfile.
Example Dockerfile:
FROM node:18 WORKDIR /app # Install dependencies COPY package*.json ./ RUN npm install # Copy application code COPY . . # Set environment variables ENV NODE_ENV=production # Expose port EXPOSE 3000 # Start command CMD ["npm", "start"]
Environment Configuration