Nextcloud Purge Script, Hyperling.com Static Media Volume, Memory Tweaks (#19)
* Fix memory; was accidentally done in `docker-compose.yml`. * Fix bad path. * Prevent DB from crashing during `fixes.sh`. * Bump the DB up a little more. * Add photos directory. * Log files as they copy. * Increase certbot by a little, was maxing near 15MB after an image update. * Add a HUGE space saver to the cleanup crew. * Add the beginnings of a purge script. Helps try to bring down the DB size. * Enhance output. * Further enhance output. * Fix loading of ENV. * Enhance output. Purge file previews. * Fix extra newline. * Add sourcing of main ENV, use RM instead of MV to reduce steps. * Fix rm command. * Ensure maintenance mode is off when starting. * Add volume rather than duplicating all media. * Ignore media. * Check space before as well.
This commit is contained in:
@ -8,15 +8,11 @@ FROM debian:testing
|
||||
# Install Dependencies
|
||||
RUN apt update && apt install -y sudo php-fpm nodejs npm
|
||||
|
||||
# Copy Static Content
|
||||
RUN rm -rfv files
|
||||
COPY ./files files
|
||||
RUN rm -rfv files/README*
|
||||
|
||||
# Run Website
|
||||
CMD rm -rfv www && \
|
||||
git clone https://github.com/Hyperling/www www && \
|
||||
rm -rfv www/files && \
|
||||
mv files www/ && \
|
||||
cd www && \
|
||||
CMD cd /var/www/api && \
|
||||
rm -rfv pages main.js run.sh && \
|
||||
git clone https://github.com/Hyperling/Website website && \
|
||||
rm -rfv website/files && \
|
||||
mv -v website/* ./ && \
|
||||
rm -rfv website && \
|
||||
./run.sh
|
||||
|
Reference in New Issue
Block a user