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 COPY wait-for-mongodb.sh /wait-for-mongodb.sh
RUN chmod +x /wait-for-mongodb.sh RUN chmod +x /wait-for-mongodb.sh
# Start the application with wait script # Install dependencies and start the application
CMD ["/wait-for-mongodb.sh", "npm", "run", "dev"] CMD ["sh", "-c", "/wait-for-mongodb.sh && npm install && npm run dev"]

View file

@ -7,5 +7,5 @@ USER root
# Expose port 8012 # Expose port 8012
EXPOSE 8012 EXPOSE 8012
# Start the application # Install dependencies and start the application
CMD ["npm", "run", "serve"] CMD ["sh", "-c", "npm install && npm run serve"]