Skip to content

Commit

Permalink
fix deployment CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiBM committed Dec 15, 2024
1 parent 46bad67 commit 9f7038f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,20 @@ RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true \

WORKDIR /staging

# Copy main executable to staging area
COPY .build/$SWIFT_CONFIGURATION/$EXEC_NAME ./
# Copy .build to staging area
COPY .build ./.build

# Move executable to the root of the staging area
RUN mv .build/$SWIFT_CONFIGURATION/$EXEC_NAME ./

# Copy static swift backtracer binary to staging area
RUN cp "/usr/libexec/swift/linux/swift-backtrace-static" ./

# Copy resources bundled by SPM to staging area
RUN find -L "$SWIFT_CONFIGURATION/" -regex '.*\.resources$' -exec cp -Ra {} ./ \;
RUN find -L ".build/$SWIFT_CONFIGURATION/" -regex '.*\.resources$' -exec cp -Ra {} ./ \;

# Remove .build directory
RUN rm -dr .build

# ================================
# Run image
Expand Down

0 comments on commit 9f7038f

Please sign in to comment.