Skip to content

Commit

Permalink
add test for file existence
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Madigan <[email protected]>
  • Loading branch information
jasonmadigan committed Dec 18, 2024
1 parent aa300ee commit 5a1c27e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,11 @@ COPY dist /usr/share/nginx/html

COPY entrypoint.sh /usr/share/nginx/html/entrypoint.sh

RUN test -f /usr/share/nginx/html/plugin-manifest.json && \
test -f /usr/share/nginx/html/plugin-entry.js && \
test -f /usr/share/nginx/html/entrypoint.sh && \
test -d /usr/share/nginx/html/locales && \
echo "All required files are present."

USER 1001
ENTRYPOINT ["/usr/share/nginx/html/entrypoint.sh"]

0 comments on commit 5a1c27e

Please sign in to comment.