diff --git a/Dockerfile b/Dockerfile index e6cf30a..6606fc3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,9 +41,8 @@ RUN cp "/usr/libexec/swift/linux/swift-backtrace-static" ./ # Copy resources bundled by SPM to staging area RUN find -L "$(swift build --package-path /build -c release --show-bin-path)/" -regex '.*\.resources$' -exec cp -Ra {} ./ \; -# Copy any resources from the public directory and views directory if the directories exist -# Ensure that by default, neither the directory nor any of its contents are writable. -RUN [ -d /build/public ] && { mv /build/public ./public && chmod -R a-w ./public; } || true +# Copy any resources from the Resources directory and ensure that by default, neither the directory nor any of its contents are writable. +RUN [ -d /build/Resources ] && { mv /build/Resources ./Resources && chmod -R a-w ./Resources; } || true # ================================ # Run image