mirror of
https://github.com/darksaid98/ptero-nginx-egg.git
synced 2026-12-01 14:38:51 +00:00
4 files changed
+17
-30
No files matched your search
+4
-5
@@ -1,11 +1,9 @@
|
||||
FROM alpine:latest
|
||||
|
||||
RUN apk --update --no-cache add ca-certificates nginx
|
||||
RUN apk add php8 php8-xml php8-exif php8-fpm php8-session php8-soap php8-openssl php8-gmp php8-pdo_odbc php8-json php8-dom php8-pdo php8-zip php8-mysqli php8-sqlite3 php8-pdo_pgsql php8-bcmath php8-gd php8-odbc php8-pdo_mysql php8-pdo_sqlite php8-gettext php8-xmlreader php8-bz2 php8-iconv php8-pdo_dblib php8-curl php8-ctype php8-phar php8-fileinfo php8-mbstring php8-tokenizer
|
||||
RUN apk --update --no-cache add curl ca-certificates nginx
|
||||
RUN apk add php8 php8-xml php8-exif php8-fpm php8-session php8-soap php8-openssl php8-gmp php8-pdo_odbc php8-json php8-dom php8-pdo php8-zip php8-mysqli php8-sqlite3 php8-pdo_pgsql php8-bcmath php8-gd php8-od>
|
||||
|
||||
RUN curl -sS https://getcomposer.org/installer -o composer-setup.php
|
||||
RUN /usr/bin/php8 composer-setup.php --install-dir=/usr/local/bin --filename=composer
|
||||
RUN rm -rf composer-setup.php
|
||||
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
||||
|
||||
USER container
|
||||
ENV USER container
|
||||
@@ -14,4 +12,5 @@ ENV HOME /home/container
|
||||
WORKDIR /home/container
|
||||
COPY ./entrypoint.sh /entrypoint.sh
|
||||
|
||||
|
||||
CMD ["/bin/ash", "/entrypoint.sh"]
|
||||
@@ -1,21 +1,8 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2019 Isaac A.
|
||||
The JohnB Public License 1.1
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
Copyright (c) 2022 JohnB
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
Everyone is permitted to fork, copy, or make modifications to the original repo, but you can't modify
|
||||
it for commercial use, such as changing the name to make it your own. You can only add on to
|
||||
this repository or making an unmodified copy for archival reasons.
|
||||
@@ -4,13 +4,14 @@
|
||||
"version": "PTDL_v2",
|
||||
"update_url": null
|
||||
},
|
||||
"exported_at": "2022-06-24T09:34:21+02:00",
|
||||
"exported_at": "2022-09-27T14:50:15+02:00",
|
||||
"name": "WebHost Egg",
|
||||
"author": "[email protected]",
|
||||
"description": "An egg to host any Website.\r\nit also has composer, just specify your packages in the packages box, and it will install the packages when you start the server, it also has wordpress, just turn on the slider when you make the server, and wordpress will get installed for you\r\n\r\nSigma Productions 2022",
|
||||
"features": null,
|
||||
"docker_images": {
|
||||
"ghcr.io\/finnie2006\/nginx-ptero": "ghcr.io\/finnie2006\/nginx-ptero"
|
||||
"PHP 8.0": " ghcr.io\/finnie2006\/nginx-ptero:8.0",
|
||||
"PHP 8.1": " ghcr.io\/finnie2006\/nginx-ptero:8.1"
|
||||
},
|
||||
"file_denylist": [],
|
||||
"startup": "{{STARTUP_CMD}}; if [[ ! -z ${COMPOSER_MODULES} ]]; then composer require ${COMPOSER_MODULES} --working-dir=\/home\/containe\r\nr\/webroot; fi;",
|
||||
@@ -22,7 +23,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"installation": {
|
||||
"script": "#!\/bin\/ash\r\ncd \/mnt\/server\r\napk --update add git\r\n\r\n# cloning repo with nginx and php files\r\ngit clone https:\/\/github.com\/finnie2006\/ptero-nginx .\/temp\r\n\r\ncp -r .\/temp\/nginx \/mnt\/server\/\r\ncp -r .\/temp\/php-fpm \/mnt\/server\/\r\ncp -r .\/temp\/webroot \/mnt\/server\/\r\ncp .\/temp\/start.sh \/mnt\/server\/\r\nchmod +x \/mnt\/server\/start.sh\r\nrm -rf .\/temp\r\nif [ \"${WORDPRESS}\" == \"false\" ] || [ \"${WORDPRESS}\" == \"0\" ]; then\r\necho -e \"Install complete go to http:\/\/ip:port\/\"\r\nfi\r\n\r\n\r\n#wordpress\r\nif [ \"${WORDPRESS}\" == \"true\" ] || [ \"${WORDPRESS}\" == \"1\" ]; then\r\n echo -e \"Installing wordpress\"\r\n cd \/mnt\/server\/webroot\r\n wget http:\/\/wordpress.org\/latest.tar.gz\r\n tar xzf latest.tar.gz\r\n mv wordpress\/* .\r\n rm -rf wordpress latest.tar.gz\r\n echo -e \"Install complete go to http:\/\/ip:port\/wp-admin \"\r\n exit 0\r\n \r\n fi",
|
||||
"script": "#!\/bin\/ash\r\ncd \/mnt\/server\r\napk --update add git\r\n\r\n# cloning repo with nginx and php files\r\ngit clone https:\/\/github.com\/finnie2006\/ptero-nginx .\/temp\r\n\r\ncp -r .\/temp\/nginx \/mnt\/server\/\r\ncp -r .\/temp\/php-fpm \/mnt\/server\/\r\ncp -r .\/temp\/webroot \/mnt\/server\/\r\ncp .\/temp\/start.sh \/mnt\/server\/\r\nchmod +x \/mnt\/server\/start.sh\r\nrm -rf .\/temp\r\nmkdir \/mnt\/server\/tmp\r\nmkdir \/mnt\/server\/logs\r\nif [ \"${WORDPRESS}\" == \"false\" ] || [ \"${WORDPRESS}\" == \"0\" ]; then\r\necho -e \"Install complete go to http:\/\/ip:port\/\"\r\nfi\r\n\r\n\r\n#wordpress\r\nif [ \"${WORDPRESS}\" == \"true\" ] || [ \"${WORDPRESS}\" == \"1\" ]; then\r\n echo -e \"Installing wordpress\"\r\n cd \/mnt\/server\/webroot\r\n wget http:\/\/wordpress.org\/latest.tar.gz\r\n tar xzf latest.tar.gz\r\n mv wordpress\/* .\r\n rm -rf wordpress latest.tar.gz\r\n echo -e \"Install complete go to http:\/\/ip:port\/wp-admin \"\r\n exit 0\r\n \r\n fi",
|
||||
"container": "alpine:latest",
|
||||
"entrypoint": "ash"
|
||||
}
|
||||
@@ -42,7 +43,7 @@
|
||||
"name": "Wordpress",
|
||||
"description": "Enable or disable Wordpress\r\n\r\n0 = false (default)\r\n1 = true",
|
||||
"env_variable": "WORDPRESS",
|
||||
"default_value": "false",
|
||||
"default_value": "0",
|
||||
"user_viewable": true,
|
||||
"user_editable": true,
|
||||
"rules": "required|boolean",
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#!/bin/ash
|
||||
rm -rf /home/container/tmp/*
|
||||
|
||||
echo "Starting PHP-FPM..."
|
||||
echo "⟳ Starting PHP-FPM..."
|
||||
/usr/sbin/php-fpm8 --fpm-config /home/container/php-fpm/php-fpm.conf --daemonize
|
||||
|
||||
echo "Starting Nginx..."
|
||||
echo "Successfully started"
|
||||
echo "⟳ Starting Nginx..."
|
||||
echo "✓ Successfully started"
|
||||
/usr/sbin/nginx -c /home/container/nginx/nginx.conf -p /home/container/
|
||||
Reference in new issue
Block a user