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