File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,20 @@ RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true \
1414
1515WORKDIR /staging
1616
17- # Copy main executable to staging area
18- COPY .build/$SWIFT_CONFIGURATION/$EXEC_NAME ./
17+ # Copy .build to staging area
18+ COPY .build ./.build
19+
20+ # Move executable to the root of the staging area
21+ RUN mv .build/$SWIFT_CONFIGURATION/$EXEC_NAME ./
1922
2023# Copy static swift backtracer binary to staging area
2124RUN cp "/usr/libexec/swift/linux/swift-backtrace-static" ./
2225
2326# Copy resources bundled by SPM to staging area
24- RUN find -L "$SWIFT_CONFIGURATION/" -regex '.*\. resources$' -exec cp -Ra {} ./ \;
27+ RUN find -L ".build/$SWIFT_CONFIGURATION/" -regex '.*\. resources$' -exec cp -Ra {} ./ \;
28+
29+ # Remove .build directory
30+ RUN rm -dr .build
2531
2632# ================================
2733# Run image
You can’t perform that action at this time.
0 commit comments