Improved the Dockerfile file in the project to copy the Resources folder to the Docker build including all of its folders and contents.
This commit is contained in:
parent
e09b011797
commit
d54a83cf64
@ -41,9 +41,8 @@ RUN cp "/usr/libexec/swift/linux/swift-backtrace-static" ./
|
|||||||
# Copy resources bundled by SPM to staging area
|
# 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 {} ./ \;
|
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
|
# Copy any resources from the Resources directory and ensure that by default, neither the directory nor any of its contents are writable.
|
||||||
# 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 [ -d /build/public ] && { mv /build/public ./public && chmod -R a-w ./public; } || true
|
|
||||||
|
|
||||||
# ================================
|
# ================================
|
||||||
# Run image
|
# Run image
|
||||||
|
Loading…
x
Reference in New Issue
Block a user