Skip to content

Commit 7dfcbf7

Browse files
committed
Update Dockerfile instructions
1 parent dc89474 commit 7dfcbf7

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

tools/gen_ort_dockerfile.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,13 @@ def dockerfile_for_linux(output_file):
134134
else:
135135
if os.getenv("CCACHE_REMOTE_ONLY") and os.getenv("CCACHE_REMOTE_STORAGE"):
136136
df += """
137-
ENV CCACHE_REMOTE_ONLY="true"
138-
ENV CCACHE_REMOTE_STORAGE="{}"
139-
ENV CMAKE_CXX_COMPILER_LAUNCHER="ccache"
140-
ENV CMAKE_C_COMPILER_LAUNCHER="ccache"
141-
ENV CMAKE_CUDA_COMPILER_LAUNCHER="ccache"
142-
ENV VERBOSE=1
137+
ENV CCACHE_REMOTE_ONLY="true" \\
138+
CCACHE_REMOTE_STORAGE="{}" \\
139+
CMAKE_CXX_COMPILER_LAUNCHER="ccache" \\
140+
CMAKE_C_COMPILER_LAUNCHER="ccache" \\
141+
CMAKE_CUDA_COMPILER_LAUNCHER="ccache" \\
142+
VERBOSE=1
143+
143144
RUN apt-get update \\
144145
&& apt-get install -y --no-install-recommends ccache && ccache -p \\
145146
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)