Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F11726163
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/Dockerfile b/Dockerfile
index 58a6dce..0d25071 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,33 +1,38 @@
#
# Docker image for Etherpad
#
FROM debian:buster
# Forked from Tony Motakis <tvelocity@gmail.com>
MAINTAINER Sébastien Santoro aka Dereckson <dereckson+nasqueron-docker@espace-win.org>
ENV NODE_ENV=production
RUN apt update && \
apt install -y curl unzip mariadb-client git sudo python libssl-dev pkg-config build-essential abiword && \
curl -sL https://deb.nodesource.com/setup_10.x | bash && \
apt install -y nodejs && \
rm -r /var/lib/apt/lists/*
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
VOLUME /opt/etherpad-lite/var
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/x-diff
Expires
Fri, Sep 19, 00:45 (16 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2992000
Default Alt Text
(1 KB)
Attached To
Mode
rDETHER Docker image for Etherpad
Attached
Detach File
Event Timeline
Log In to Comment