diff --git a/Dockerfile b/Dockerfile index 338cfc0..a354d4c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM alpine:3.21 RUN \ apk -U upgrade && \ - apk add tini nginx openssh-server \ + apk add tini nginx openssh-server nginx-mod-http-dav-ext \ php84 php84-fpm php84-mbstring php84-curl php84-ctype php84-dom php84-gd php84-json php84-openssl php84-session php84-simplexml php84-xml php84-zip \ php84-apcu php84-opcache php84-pecl-yaml php84-sqlite3 php84-mysqli \ php83 php83-fpm php83-mbstring php83-curl php83-ctype php83-dom php83-gd php83-json php83-openssl php83-session php83-simplexml php83-xml php83-zip \ @@ -16,9 +16,11 @@ VOLUME [ "/data/www", "/ssh" ] ENV \ USERNAME=theuser \ + GROUPNAME=thegroup \ PHP=none \ PUID=1000 \ PGID=1000 \ + WEBDAV_PORT=8080 \ TZ=Etc/UTC ENTRYPOINT [ "/sbin/tini", "/app/entrypoint.sh" ] diff --git a/Dockerfile-php74 b/Dockerfile-php74 index abd92fc..629dafc 100644 --- a/Dockerfile-php74 +++ b/Dockerfile-php74 @@ -2,7 +2,7 @@ FROM alpine:3.15 RUN \ apk -U upgrade && \ - apk add tini nginx openssh-server \ + apk add tini nginx openssh-server nginx-mod-http-dav-ext \ php7 php7-fpm php7-mbstring php7-curl php7-ctype php7-dom php7-gd php7-json php7-openssl php7-session php7-simplexml php7-xml php7-zip \ php7-apcu php7-opcache php7-pecl-yaml php7-sqlite3 php7-mysqli @@ -12,9 +12,11 @@ VOLUME [ "/data/www", "/ssh" ] ENV \ USERNAME=theuser \ + GROUPNAME=thegroup \ PHP=none \ PUID=1000 \ PGID=1000 \ + WEBDAV_PORT=8080 \ TZ=Etc/UTC ENTRYPOINT [ "/sbin/tini", "/app/entrypoint.sh" ] diff --git a/rootfs-php74/app/entrypoint.sh b/rootfs-php74/app/entrypoint.sh index 1667944..ca43011 100755 --- a/rootfs-php74/app/entrypoint.sh +++ b/rootfs-php74/app/entrypoint.sh @@ -1,6 +1,7 @@ #!/bin/sh WEBROOT=/data/www +WEBDAV_PORT=${WEBDAV_PORT:-8080} PHP=${PHP:-none} USERNAME=${USERNAME:-theuser} PUID=${PUID:-1000} @@ -70,5 +71,32 @@ fi chmod 0700 "${WEBROOT}/.ssh" /usr/sbin/sshd -e +cat > /etc/nginx/conf.d/user.conf < /etc/nginx/http.d/webdav.conf < /etc/nginx/conf.d/user.conf < /etc/nginx/http.d/webdav.conf <