mirror of
https://github.com/awslabs/amazon-bedrock-agentcore-samples.git
synced 2025-09-08 20:50:46 +00:00
* updated README.md file with bearer token generation * updated README.md file with bearer token generation-removed client id and secret credentials * removed hardcoded domain * added agent runtime, frontend, observability and agentcore identity * update README.md file to reflect frontend testing
44 lines
762 B
Docker
44 lines
762 B
Docker
FROM public.ecr.aws/docker/library/python:3.12-slim
|
|
WORKDIR /app
|
|
|
|
# Install system dependencies if needed
|
|
|
|
|
|
# Copy entire project (respecting .dockerignore)
|
|
COPY . .
|
|
|
|
# Install dependencies
|
|
|
|
|
|
|
|
|
|
# Install from requirements file
|
|
RUN python -m pip install --no-cache-dir -r requirements-runtime.txt
|
|
|
|
|
|
|
|
|
|
|
|
# Set AWS region environment variable
|
|
|
|
ENV AWS_REGION=us-west-2
|
|
ENV AWS_DEFAULT_REGION=us-west-2
|
|
|
|
|
|
# Signal that this is running in Docker for host binding logic
|
|
ENV DOCKER_CONTAINER=1
|
|
|
|
|
|
RUN python -m pip install aws_opentelemetry_distro_genai_beta>=0.1.2
|
|
|
|
|
|
# Create non-root user
|
|
RUN useradd -m -u 1000 bedrock_agentcore
|
|
USER bedrock_agentcore
|
|
|
|
EXPOSE 8080
|
|
|
|
# Use the full module path
|
|
|
|
CMD ["opentelemetry-instrument", "python", "-m", "strands_agent_runtime"]
|