Use "npm start" to allow for proper stopping of container

Solution taken from https://stackoverflow.com/a/57473861
This commit is contained in:
Craeckie 2021-05-04 17:13:38 +02:00 committed by Adrian Nöthlich
parent ba24e3fb37
commit a6c1bd8f69
2 changed files with 2 additions and 2 deletions

View file

@ -47,4 +47,4 @@ VOLUME /cryptpad/datastore
EXPOSE 3000 3001 EXPOSE 3000 3001
# Run cryptpad on startup # Run cryptpad on startup
CMD ["server.js"] CMD ["npm", "start"]

View file

@ -47,4 +47,4 @@ VOLUME /cryptpad/datastore
EXPOSE 3000 3001 EXPOSE 3000 3001
# Run cryptpad on startup # Run cryptpad on startup
CMD ["server.js"] CMD ["npm", "start"]