File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed
Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 11FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
22
3- ARG UV_INDEX_URL
4- ARG UV_EXTRA_INDEX_URL
3+ ARG UV_DEFAULT_INDEX
4+ ARG UV_INDEX
55
66WORKDIR /app
77
@@ -10,8 +10,8 @@ ENV UV_SYSTEM_PYTHON=1 \
1010 UV_NO_PROGRESS=1 \
1111 PYTHONUNBUFFERED=1 \
1212 DOCKER_CONTAINER=1 \
13- UV_INDEX_URL =${UV_INDEX_URL } \
14- UV_EXTRA_INDEX_URL =${UV_EXTRA_INDEX_URL }
13+ UV_DEFAULT_INDEX =${UV_DEFAULT_INDEX } \
14+ UV_INDEX =${UV_INDEX }
1515
1616RUN useradd -m -u 1000 bedrock_agentcore
1717
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { readCliConfig } from '../utils/cli-config';
77export function getUvBuildArgs ( ) : string [ ] {
88 const config = readCliConfig ( ) ;
99 const args : string [ ] = [ ] ;
10- if ( config . uvIndexUrl ) args . push ( '--build-arg' , `UV_INDEX_URL =${ config . uvIndexUrl } ` ) ;
11- if ( config . uvExtraIndexUrl ) args . push ( '--build-arg' , `UV_EXTRA_INDEX_URL =${ config . uvExtraIndexUrl } ` ) ;
10+ if ( config . uvDefaultIndex ) args . push ( '--build-arg' , `UV_DEFAULT_INDEX =${ config . uvDefaultIndex } ` ) ;
11+ if ( config . uvIndex ) args . push ( '--build-arg' , `UV_INDEX =${ config . uvIndex } ` ) ;
1212 return args ;
1313}
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ import { join } from 'path';
55const CONFIG_FILE = join ( homedir ( ) , '.agentcore' , 'config.json' ) ;
66
77export interface CliConfig {
8- uvIndexUrl ?: string ;
9- uvExtraIndexUrl ?: string ;
8+ uvDefaultIndex ?: string ;
9+ uvIndex ?: string ;
1010}
1111
1212/**
@@ -18,8 +18,8 @@ export function readCliConfig(): CliConfig {
1818 const data = readFileSync ( CONFIG_FILE , 'utf-8' ) ;
1919 const parsed : Record < string , unknown > = JSON . parse ( data ) as Record < string , unknown > ;
2020 const config : CliConfig = { } ;
21- if ( typeof parsed . uvIndexUrl === 'string' ) config . uvIndexUrl = parsed . uvIndexUrl ;
22- if ( typeof parsed . uvExtraIndexUrl === 'string' ) config . uvExtraIndexUrl = parsed . uvExtraIndexUrl ;
21+ if ( typeof parsed . uvDefaultIndex === 'string' ) config . uvDefaultIndex = parsed . uvDefaultIndex ;
22+ if ( typeof parsed . uvIndex === 'string' ) config . uvIndex = parsed . uvIndex ;
2323 return config ;
2424 } catch {
2525 return { } ;
You can’t perform that action at this time.
0 commit comments