add keeweb
This commit is contained in:
32
misc/images/keeweb/containers/Dockerfile
Executable file
32
misc/images/keeweb/containers/Dockerfile
Executable file
@ -0,0 +1,32 @@
|
||||
FROM reg.cadoles.com/envole/nineapache:8.2
|
||||
|
||||
USER root
|
||||
|
||||
# Installe Node.js + npm
|
||||
RUN apk add --no-cache nodejs npm
|
||||
|
||||
# Crée le dossier de l'app
|
||||
WORKDIR /app
|
||||
|
||||
# Installe webdav-server localement (dans /app/node_modules)
|
||||
RUN npm install webdav-server@2
|
||||
|
||||
# Copie ton script WebDAV dans /app
|
||||
COPY webdav.js /app/webdav.js
|
||||
|
||||
# Installe KeeWeb
|
||||
RUN curl -L https://github.com/keeweb/keeweb/releases/download/v1.18.7/KeeWeb-1.18.7.html.zip -o /tmp/keeweb.zip \
|
||||
&& unzip /tmp/keeweb.zip -d /app/public \
|
||||
&& sed -i 's|<base href="/"|<base href="/keeweb/"|' /app/public/index.html \
|
||||
&& mv /app/public/index.html /app/public/index.php
|
||||
|
||||
# Crée le dossier de stockage
|
||||
RUN mkdir -p /data && chown apache:apache /data
|
||||
|
||||
# Copie la conf Apache
|
||||
COPY apache.conf /etc/apache2/conf.d/zapp.conf
|
||||
|
||||
# Démarre Apache + WebDAV
|
||||
USER apache
|
||||
ENV NODE_PATH=/app/node_modules
|
||||
CMD sh -c "node /app/webdav.js & httpd -D FOREGROUND"
|
Reference in New Issue
Block a user