From d54a83cf6423668f1d139112dcecb5995f623813 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Mon, 10 Mar 2025 00:52:55 +0100 Subject: [PATCH] Improved the Dockerfile file in the project to copy the Resources folder to the Docker build including all of its folders and contents. --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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