Fix start commande

This commit is contained in:
mahek 2025-07-25 17:43:09 +02:00
parent a632eacb0b
commit 84dabd714c
2 changed files with 4 additions and 4 deletions

View file

@ -11,5 +11,5 @@ EXPOSE 5000
COPY wait-for-mongodb.sh /wait-for-mongodb.sh
RUN chmod +x /wait-for-mongodb.sh
# Start the application with wait script
CMD ["/wait-for-mongodb.sh", "npm", "run", "dev"]
# Install dependencies and start the application
CMD ["sh", "-c", "/wait-for-mongodb.sh && npm install && npm run dev"]