Improved the Docker image and build context for the Website service target.

This commit is contained in:
2026-08-13 15:57:11 +02:00
parent 397ad6b896
commit a5305c6044
2 changed files with 6 additions and 2 deletions
+3
View File
@@ -10,6 +10,9 @@
**/.build
**/.swiftpm
# The test database's data directory.
**/Tests/DB
# Xcode project (not used by the Linux build)
*.xcodeproj
+3 -2
View File
@@ -70,8 +70,9 @@ RUN swift build --package-path ./Services/Website -c release \
# Switch to the staging area
WORKDIR /staging
# Copy main executable to staging area
RUN cp "$(swift build --package-path /build/Services/Website -c release --show-bin-path)/Website" ./
# Copy main executable to staging area, without its debug sections
RUN cp "$(swift build --package-path /build/Services/Website -c release --show-bin-path)/Website" ./ \
&& strip --strip-debug ./Website
# Copy static swift backtracer binary to staging area
RUN cp "/usr/libexec/swift/linux/swift-backtrace-static" ./