This repository has been archived on 2026-11-17. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
bashupload-docker/Dockerfile

27 lines
766 B
Docker

FROM docker-proxy.jonasled.de/library/alpine:latest as getSource
WORKDIR /root
RUN apk update && \
apk add git && \
git clone https://github.com/IO-Technologies/bashupload
FROM gitlab.jonasled.de/jonasled/nginx-php-minimal:8-latest
ENV PHP_MEMORY_LIMIT=1024M \
PHP_MAX_UPLOAD=512G \
PHP_MAX_POST=512G
COPY --from=getSource /root/bashupload/ /var/www/
COPY htaccess /tmp/htaccess
COPY crontab /etc/crontabs/nginx
COPY entrypoint /usr/local/bin/
RUN mv /var/www/web/* /var/www/html && \
mv /tmp/htaccess /var/www/html/.htaccess && \
echo "<?php" > /var/www/actions/default.php && \
chown nginx /etc/crontabs/nginx && \
chmod +x /usr/local/bin/entrypoint && \
apk update && \
apk add mailcap busybox-suid
VOLUME /var/files