From 8cd0ff0a464ad3eec778f0ea3704d254cda49bd1 Mon Sep 17 00:00:00 2001 From: Fascinated Date: Wed, 12 Jul 2023 14:02:33 +0100 Subject: [PATCH] start work on auto downloading the public directory images --- Dockerfile | 2 +- start.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 start.sh diff --git a/Dockerfile b/Dockerfile index 4758522..cc5ba3b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,4 +24,4 @@ ENV NODE_ENV=production EXPOSE 3000 # Start the app -CMD ["npm", "start"] \ No newline at end of file +CMD ["bash", "start.sh"] \ No newline at end of file diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..5f127e6 --- /dev/null +++ b/start.sh @@ -0,0 +1,5 @@ +if [ -z "$(ls -A /usr/src/app/public)" ]; then + echo "Directory is empty" +fi + +node start \ No newline at end of file