ADD file:23044999785b10f3877290bd3c9d8db3c9cb1fac8edfb40c775137ab73e0d41d in / |
CMD ["/bin/sh"] |
LABEL Maintainer=BohwaZ <https://bohwaz.net/> Description=KaraDAV file sharing server |
RUN /bin/sh -c apk --no-cache add php81 php81-curl php81-ctype php81-opcache php81-simplexml php81-session php81-sqlite3 php81-fileinfo # buildkit |
ENV PHP_CLI_SERVER_WORKERS=4 |
RUN /bin/sh -c mkdir -p /var/karadav # buildkit |
RUN /bin/sh -c mkdir /var/karadav/data # buildkit |
RUN /bin/sh -c mkdir /var/karadav/lib # buildkit |
RUN /bin/sh -c mkdir /var/karadav/www # buildkit |
WORKDIR /var/karadav/ |
COPY lib /var/karadav/lib/ # buildkit |
COPY www /var/karadav/www/ # buildkit |
COPY schema.sql /var/karadav/ # buildkit |
COPY config.dist.php /var/karadav/config.local.php # buildkit |
EXPOSE map[8080/tcp:{}] |
VOLUME [/var/karadav/data] |
ENV PHP_CLI_SERVER_WORKERS=3 |
CMD ["php" "-S" "0.0.0.0:8080" "-t" "www" "www/_router.php"] |