start work on auto downloading the public directory images
All checks were successful
Publish Docker Image / docker (push) Successful in 1m25s

This commit is contained in:
Lee 2023-07-12 14:02:33 +01:00
parent b3be2ee10f
commit 8cd0ff0a46
2 changed files with 6 additions and 1 deletions

@ -24,4 +24,4 @@ ENV NODE_ENV=production
EXPOSE 3000
# Start the app
CMD ["npm", "start"]
CMD ["bash", "start.sh"]

5
start.sh Normal file

@ -0,0 +1,5 @@
if [ -z "$(ls -A /usr/src/app/public)" ]; then
echo "Directory is empty"
fi
node start