Skip to content

Commit 9f7038f

Browse files
committed
fix deployment CI
1 parent 46bad67 commit 9f7038f

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Dockerfile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,20 @@ RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true \
1414

1515
WORKDIR /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
2124
RUN 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

0 commit comments

Comments
 (0)