Fix start commande
This commit is contained in:
parent
a632eacb0b
commit
84dabd714c
2 changed files with 4 additions and 4 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -7,5 +7,5 @@ USER root
|
|||
# Expose port 8012
|
||||
EXPOSE 8012
|
||||
|
||||
# Start the application
|
||||
CMD ["npm", "run", "serve"]
|
||||
# Install dependencies and start the application
|
||||
CMD ["sh", "-c", "npm install && npm run serve"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue