1
0
Fork 0

remove workaround | update to v0.7.14

This commit is contained in:
saibotk 2019-07-29 02:22:48 +02:00
parent d9986ec331
commit efb51d03b0

View file

@ -1,6 +1,6 @@
FROM php:7.2-fpm-alpine FROM php:7.2-fpm-alpine
ENV PANEL_VERSION=v0.7.10 ENV PANEL_VERSION=v0.7.14
# Set up all the dependencies for the PHP container. # Set up all the dependencies for the PHP container.
RUN apk add --no-cache curl git supervisor tar unzip; \ RUN apk add --no-cache curl git supervisor tar unzip; \
@ -25,19 +25,12 @@ WORKDIR /var/www/html/pterodactyl
RUN chown -R pterodactyl:pterodactyl /var/www/html/pterodactyl /var/www/html/env RUN chown -R pterodactyl:pterodactyl /var/www/html/pterodactyl /var/www/html/env
# Deploy panel files. # Deploy panel files.
# `composer install` has to be run for a few times to make the panel work.
# See https://github.com/pterodactyl/panel/issues/1369
USER pterodactyl:pterodactyl USER pterodactyl:pterodactyl
RUN curl -Lo panel.tar.gz https://github.com/Pterodactyl/Panel/releases/download/${PANEL_VERSION}/panel.tar.gz; \ RUN curl -Lo panel.tar.gz https://github.com/Pterodactyl/Panel/releases/download/${PANEL_VERSION}/panel.tar.gz; \
tar --strip-components=1 -xzvf panel.tar.gz; \ tar --strip-components=1 -xzvf panel.tar.gz; \
cp .env.example /var/www/html/env/.env; \ cp .env.example /var/www/html/env/.env; \
ln -s /var/www/html/env/.env /var/www/html/pterodactyl/.env; \ ln -s /var/www/html/env/.env /var/www/html/pterodactyl/.env; \
composer install --no-dev --optimize-autoloader; \ composer install --no-dev --optimize-autoloader; \
composer install --no-dev --optimize-autoloader; \
composer install --no-dev --optimize-autoloader; \
composer install --no-dev --optimize-autoloader; \
composer install --no-dev --optimize-autoloader; \
composer install --no-dev --optimize-autoloader; \
chmod -R 755 storage/* bootstrap/cache chmod -R 755 storage/* bootstrap/cache
# Copy the remaining configuration files. # Copy the remaining configuration files.