From a6c1bd8f69981a6f031eca6b3188729f31b9eaa0 Mon Sep 17 00:00:00 2001 From: Craeckie Date: Tue, 4 May 2021 17:13:38 +0200 Subject: [PATCH] Use "npm start" to allow for proper stopping of container Solution taken from https://stackoverflow.com/a/57473861 --- Dockerfile | 2 +- Dockerfile-alpine | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a9bda57..aaa97b7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,4 +47,4 @@ VOLUME /cryptpad/datastore EXPOSE 3000 3001 # Run cryptpad on startup -CMD ["server.js"] +CMD ["npm", "start"] diff --git a/Dockerfile-alpine b/Dockerfile-alpine index f066af5..9b80c5e 100644 --- a/Dockerfile-alpine +++ b/Dockerfile-alpine @@ -47,4 +47,4 @@ VOLUME /cryptpad/datastore EXPOSE 3000 3001 # Run cryptpad on startup -CMD ["server.js"] +CMD ["npm", "start"]