Chad cf0d028a58
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.
2024-01-25 02:49:00 +00:00

19 lines
546 B
Docker

# 2022-10-29 Hyperling
# Create website in node container and run it.
# Using Debian testing so that we use PHP >8. Otherwise the shebangs from
# the include files (#!/usr/bin/php) show up on the website.
FROM debian:testing
# Install Dependencies
RUN apt update && apt install -y sudo php-fpm nodejs npm
# Run Website
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