@@ -24,7 +24,7 @@ RUN sed -i 's/\/opt\/ldc/\/opt\/ldc-bootstrap/g' /opt/ldc-bootstrap/etc/ldc2.con
2424# Download, build and install DMD
2525
2626{{< dmd/download-dmd-source.containerfile }}
27- RUN ln -s /opt/ldc-bootstrap/bin/ldmd2 /usr/bin/dmd
27+ RUN ln -s /opt/ldc-bootstrap/bin/ldmd2 /usr/local/ bin/dmd
2828
2929{{< dmd/build-dmd.containerfile }}
3030
@@ -41,8 +41,8 @@ FROM {{ $base_image }} AS export-stage
4141
4242{{< common/prepare-runtime-environment.containerfile }}
4343
44- COPY --from=build-stage /opt/build/dmd/generated/linux/release/64/dmd /usr/bin/dmd
45- COPY --from=build-stage /opt/build/phobos/generated/linux/release/64/* /usr/lib/
44+ COPY --from=build-stage /opt/build/dmd/generated/linux/release/64/dmd /usr/local/ bin/dmd
45+ COPY --from=build-stage /opt/build/phobos/generated/linux/release/64/* /usr/local/ lib/
4646{{# if ($druntimeMonorepo): }}
4747 COPY --from=build-stage /opt/build/dmd/druntime/src /usr/include/dmd/druntime/import
4848{{# else: }}
@@ -51,10 +51,10 @@ COPY --from=build-stage /opt/build/phobos/generated/linux/release/64/* /usr/lib/
5151COPY --from=build-stage /opt/build/phobos/std /usr/include/dmd/phobos/std
5252COPY --from=build-stage /opt/build/phobos/etc /usr/include/dmd/phobos/etc
5353{{# if (isset($extras['dub' ])): }}
54- COPY --from=build-stage /opt/build/dub/bin/dub /usr/bin/dub
54+ COPY --from=build-stage /opt/build/dub/bin/dub /usr/local/ bin/dub
5555{{# endif }}
5656COPY ./resources/dmd.conf /etc/dmd.conf
57- COPY ./templates/scripts/entrypoint-dmd.sh /usr/bin/entrypoint
57+ COPY ./templates/scripts/entrypoint-dmd.sh /usr/local/ bin/entrypoint
5858
5959{{< d-tools/install-d-tools.containerfile }}
6060
@@ -63,5 +63,5 @@ COPY ./resources/helloworld.d /opt/helloworld.d
6363RUN dmd -run /opt/helloworld.d
6464RUN rm /opt/helloworld.d
6565
66- ENTRYPOINT [ "/usr/bin/entrypoint" ]
67- CMD [ "/usr/bin/dmd" ]
66+ ENTRYPOINT [ "/usr/local/ bin/entrypoint" ]
67+ CMD [ "/usr/local/ bin/dmd" ]
0 commit comments