Download Dockerfile from Ikyy/panel: direct link, hf CLI and curl.
- Browser
- Download file 1.21 kB
-
https://huggingface.co/spaces/Ikyy/panel/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Ikyy/panel/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Ikyy/panel/resolve/main/Dockerfile
1.21 kB
| FROM ubuntu:20.04 | |
| # install dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| curl \ | |
| software-properties-common \ | |
| && add-apt-repository ppa:ondrej/php \ | |
| && apt-get update && apt-get install -y \ | |
| php8.0 \ | |
| php8.0-cli \ | |
| php8.0-fpm \ | |
| php8.0-mysql \ | |
| php8.0-pdo \ | |
| php8.0-tokenizer \ | |
| php8.0-mbstring \ | |
| php8.0-curl \ | |
| php8.0-zip \ | |
| php8.0-xml \ | |
| nginx \ | |
| mariadb-server \ | |
| git \ | |
| unzip \ | |
| && apt-get clean | |
| # set working directory | |
| WORKDIR /var/www/pterodactyl | |
| # clone pterodactyl panel | |
| RUN git clone --recurse-submodules https://github.com/pterodactyl/panel.git . \ | |
| && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \ | |
| && composer install --no-dev --optimize-autoloader | |
| # set permissions | |
| RUN chown -R www-data:www-data /var/www/pterodactyl/* | |
| # configure nginx | |
| COPY ./nginx.conf /etc/nginx/sites-available/pterodactyl | |
| RUN ln -s /etc/nginx/sites-available/pterodactyl /etc/nginx/sites-enabled/pterodactyl \ | |
| && rm /etc/nginx/sites-enabled/default | |
| # expose port | |
| EXPOSE 7860 | |
| # start services | |
| CMD service nginx start && php-fpm8.0 -F |