[etherpad-web/oscp-backend] Run node directly
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [etherpad-web/oscp-backend] Run node directly
- Date: Fri, 18 Dec 2020 09:43:18 +0000 (UTC)
commit 6f25c49f01a63f6a174dc1ee820d9a5d0dc18b57
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Fri Dec 18 10:43:10 2020 +0100
Run node directly
Dockerfile | 2 +-
entrypoint.sh | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/Dockerfile b/Dockerfile
index c4b82be..941e457 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -23,7 +23,7 @@ ADD entrypoint.sh /entrypoint.sh
USER etherpad
WORKDIR /opt/etherpad
-RUN bin/installDeps.sh && rm settings.json
+RUN bin/installDeps.sh && rm settings.json && rm -rf ~/.npm/_cacache
RUN npm install ep_adminpads \
ep_align \
diff --git a/entrypoint.sh b/entrypoint.sh
index 484d57f..0f9988f 100755
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -33,5 +33,4 @@ sed -i "s/DB_PASS/${DB_PASS}/" settings.json
sed -i "s/DB_PORT/${DB_PORT}/" settings.json
sed -i "s/DB_USER/${DB_USER}/" settings.json
-# Execute the etherpad provided startup script
-exec ./bin/run.sh
+exec node --experimental-worker node_modules/ep_etherpad-lite/node/server.js
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]