generated from Fascinated/nextjs-13-template-with-tailwindcss
start work on auto downloading the public directory images
All checks were successful
Publish Docker Image / docker (push) Successful in 1m25s
All checks were successful
Publish Docker Image / docker (push) Successful in 1m25s
This commit is contained in:
parent
b3be2ee10f
commit
8cd0ff0a46
@ -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
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
|
Loading…
Reference in New Issue
Block a user