Skip to content

Commit 17a9706

Browse files
authored
Omit WDT binary copy statement in Aux image build when source directory is empty (#348)
1 parent 4d46146 commit 17a9706

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

imagetool/src/main/resources/docker-files/aux-image.mustache

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,14 @@ ENV AUXILIARY_IMAGE_PATH={{{wdt_home}}} \
4040
WDT_HOME={{{wdt_home}}} \
4141
WDT_MODEL_HOME={{{wdt_model_home}}}
4242

43-
RUN mkdir -p {{{wdt_home}}} {{{wdt_model_home}}} \
44-
&& chown {{userid}}:{{groupid}} {{{wdt_home}}} {{{wdt_model_home}}}
45-
COPY --from=wdt_build --chown={{userid}}:{{groupid}} {{wdt_home}} {{wdt_home}}/
43+
{{#installWdt}}
44+
RUN mkdir -p {{{wdt_home}}} && chown {{userid}}:{{groupid}} {{{wdt_home}}}
45+
COPY --from=wdt_build --chown={{userid}}:{{groupid}} {{wdt_home}} {{wdt_home}}/
46+
{{/installWdt}}
47+
48+
{{#hasWdtFiles}}
49+
RUN mkdir -p {{{wdt_model_home}}} && chown {{userid}}:{{groupid}} {{{wdt_model_home}}}
50+
{{/hasWdtFiles}}
4651

4752
{{#wdtModels}}
4853
COPY --chown={{userid}}:{{groupid}} {{{.}}} {{{wdt_model_home}}}/

0 commit comments

Comments
 (0)