Page MenuHomeDevCentral

D2316.diff
No OneTemporary

D2316.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
Sat, Dec 21, 02:29 (12 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2308785
Default Alt Text
D2316.diff (757 B)

Event Timeline