Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3918362
D2316.id5836.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
757 B
Referenced Files
None
Subscribers
None
D2316.id5836.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 06:39 (16 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2308785
Default Alt Text
D2316.id5836.diff (757 B)
Attached To
Mode
D2316: Drop privileges
Attached
Detach File
Event Timeline
Log In to Comment