Page MenuHomeDevCentral

D2316.id.diff
No OneTemporary

D2316.id.diff

diff --git a/Dockerfile b/Dockerfile
--- a/Dockerfile
+++ b/Dockerfile
@@ -17,8 +17,14 @@
RUN cd /opt && \
git clone https://github.com/ether/etherpad-lite && \
- cd etherpad-lite && \
- bin/installDeps.sh && \
+ useradd --uid 9001 --create-home etherpad && \
+ chown -R etherpad:0 /opt/etherpad-lite
+
+WORKDIR /opt/etherpad-lite
+USER etherpad
+
+RUN bin/installDeps.sh && \
+ rm -rf ~/.npm/_cacache && \
rm settings.json
COPY entrypoint.sh /entrypoint.sh
@@ -27,7 +33,6 @@
RUN ln -s /opt/etherpad-lite/var/settings.json /opt/etherpad-lite/settings.json
-WORKDIR /opt/etherpad-lite
EXPOSE 9001
ENTRYPOINT ["/entrypoint.sh"]
-CMD ["bin/run.sh", "--root"]
+CMD ["node", "node_modules/ep_etherpad-lite/node/server.js"]

File Metadata

Mime Type
text/plain
Expires
Sun, Sep 29, 10:00 (9 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2163890
Default Alt Text
D2316.id.diff (757 B)

Event Timeline