Skip to content
Snippets Groups Projects
Commit 8b61c2ff authored by PICHOU Kyâne's avatar PICHOU Kyâne
Browse files

Upgrade to etherpad 1.6.3

parent 7656912d
No related branches found
No related tags found
No related merge requests found
FROM registry.picasoft.net:5000/pica-debian:latest
MAINTAINER antoine@barbare.me
ENV ETHERPAD_VERSION 1.6.1
ENV ETHERPAD_VERSION 1.6.3
ENV NODE_ENV=production
#Copy configuration
COPY add/entrypoint.sh /entrypoint.sh
COPY entrypoint.sh /entrypoint.sh
#Installation de NodeJS + NPM
#Installation de dépendances + NodeJS + NPM
RUN useradd -d /opt/etherpad-lite -u 1000 etherpad && \
curl -sL https://deb.nodesource.com/setup_8.x | bash - && \
curl -sL https://deb.nodesource.com/setup_9.x | bash - && \
apt-get update && \
apt-get install -y nodejs unzip mysql-client && \
apt-get install -y \
nodejs \
unzip \
mysql-client \
gzip \
git \
curl \
python \
libssl-dev \
pkg-config \
build-essential && \
rm -r /var/lib/apt/lists/* && \
curl -SL https://github.com/ether/etherpad-lite/archive/${ETHERPAD_VERSION}.zip > etherpad.zip && \
unzip etherpad && \
......
......@@ -25,8 +25,6 @@ fi
: ${ETHERPAD_TITLE:=Etherpad}
: ${ETHERPAD_PORT:=8080}
: ${ETHERPAD_SESSION_KEY:=$(
node -p "require('crypto').randomBytes(32).toString('hex')")}
# Check if database already exists
RESULT=`mysql -u${ETHERPAD_DB_USER} -p${ETHERPAD_DB_PASSWORD} \
......@@ -48,7 +46,6 @@ if [ ! -f settings.json ]; then
"title": "${ETHERPAD_TITLE}",
"ip": "0.0.0.0",
"port" :${ETHERPAD_PORT},
"sessionKey" : "${ETHERPAD_SESSION_KEY}",
"dbType" : "mysql",
"dbSettings" : {
"user" : "${ETHERPAD_DB_USER}",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment