Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	File size: 460 Bytes
			
			| 00384fe | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # Inicializa un array vacío
args=()
# Lee el archivo .env línea por línea
while IFS='=' read -r key value; do
    if [[ $key != \#* && $key != '' ]]; then  # Excluye comentarios y líneas vacías
        args+=(--build-arg "$key=$value")  # Agrega --build-arg y la variable como un elemento
    fi
done < .env
# Ejecuta docker build con los argumentos
IMAGE_NAME='dvats-rstudio-base:latest'
docker build "${args[@]}" . -f Dockerfile.base -t ${IMAGE_NAME}
 |