diff --git a/.dockerignore b/.dockerignore index b84d7f9..4d8f56b 100644 --- a/.dockerignore +++ b/.dockerignore @@ -10,6 +10,9 @@ **/.build **/.swiftpm +# The test database's data directory. +**/Tests/DB + # Xcode project (not used by the Linux build) *.xcodeproj diff --git a/Services/Website/Dockerfile b/Services/Website/Dockerfile index c1c6879..89df2b4 100644 --- a/Services/Website/Dockerfile +++ b/Services/Website/Dockerfile @@ -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" ./