Skip to content

Commit

Permalink
Adjust RUN
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas J. Fan <[email protected]>
  • Loading branch information
thomasjpfan committed Jun 28, 2024
1 parent 181dc7b commit ec37c73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flytekit/image_spec/default_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
LD_LIBRARY_PATH="/usr/local/nvidia/lib64:$$LD_LIBRARY_PATH"
$COPY_COMMAND_RUNTIME
$RUN_COMMANDS
RUN $RUN_COMMANDS
WORKDIR /root
SHELL ["/bin/bash", "-c"]
Expand Down Expand Up @@ -133,7 +133,7 @@ def create_docker_context(image_spec: ImageSpec, tmp_dir: Path):
uv_requirements.append(requirement)

requirements_uv_path = tmp_dir / "requirements_uv.txt"
requirements_uv_path.write_text(os.linesep.join(uv_requirements))
requirements_uv_path.write_text("\n".join(uv_requirements))

pip_extra = f"--index-url {image_spec.pip_index}" if image_spec.pip_index else ""
uv_python_install_command = UV_PYTHON_INSTALL_COMMAND_TEMPLATE.substitute(PIP_EXTRA=pip_extra)
Expand Down Expand Up @@ -192,7 +192,7 @@ def create_docker_context(image_spec: ImageSpec, tmp_dir: Path):
python_version = f"{sys.version_info.major}.{sys.version_info.minor}"

if image_spec.commands:
run_commands = "\n".join(f"RUN {command}" for command in image_spec.commands)
run_commands = " && ".join(image_spec.commands)
else:
run_commands = ""

Expand Down

0 comments on commit ec37c73

Please sign in to comment.