Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F56999084
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/Dockerfile b/Dockerfile
index ab3d1b5..84ef451 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,38 +1,41 @@
#
# Docker image for Etherpad
#
FROM debian:bookworm
# 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 libssl-dev pkg-config build-essential abiword && \
curl -sL https://deb.nodesource.com/setup_18.x | bash && \
apt install -y nodejs && \
rm -r /var/lib/apt/lists/*
RUN cd /opt && \
git clone https://github.com/ether/etherpad-lite && \
useradd --uid 9001 --create-home etherpad && \
- chown -R etherpad:0 /opt/etherpad-lite
+ chown -R etherpad:0 /opt/etherpad-lite && \
+ npm install npm@6 -g
WORKDIR /opt/etherpad-lite
USER etherpad
-RUN bin/installDeps.sh && \
- rm -rf ~/.npm/_cacache && \
+RUN src/bin/installDeps.sh && \
+ rm -rf ~/.npm && \
rm settings.json
-COPY entrypoint.sh /entrypoint.sh
+USER root
+RUN cd src && npm link
+USER etherpad
VOLUME /opt/etherpad-lite/var
RUN ln -s /opt/etherpad-lite/var/settings.json /opt/etherpad-lite/settings.json
EXPOSE 9001
ENTRYPOINT ["/entrypoint.sh"]
-CMD ["node", "node_modules/ep_etherpad-lite/node/server.js"]
+CMD ["etherpad"]
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Nov 14, 19:17 (4 d, 4 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4240436
Default Alt Text
(1 KB)
Attached To
Mode
rDETHER Docker image for Etherpad
Attached
Detach File
Event Timeline
Log In to Comment