gifted-lunch-20593
12/15/2024, 12:09 AMdocker_image
target is very strange.
Resolves pex
and file
dependencies, but doesn't generic targets
. I have a bunch of `file`s in a target
and use it everywhere, but docker_image
somehow fails to resolve them. It works if I repackage separate `file`s to files
, but it seems unnecessarybroad-processor-92400
12/17/2024, 11:17 PMdocker_image
target and the target
target? 😄gifted-lunch-20593
12/18/2024, 1:28 PMdocker_image(
name="docker_image",
repository="service",
dependencies=[
"//:model"
],
)
target(
name="model",
dependencies=[
":model.safetensors",
":added_tokens.json",
":config.json",
":special_tokens_map.json",
":spm.model",
":tokenizer.json",
":tokenizer_config.json",
":training_args.bin",
],
)
broad-processor-92400
12/18/2024, 10:27 PMDockerfile
commands like COPY model.safetensors .
don't work with that, but do work with a files(name="model", sources=[...])
target?gifted-lunch-20593
12/20/2024, 2:42 PMfiles
, because it doesn't support http_source