1
0
Fork 0

chore(Dockerfile): squash layers (chown)

This commit is contained in:
Vojtěch Mareš 2023-01-16 16:31:05 +01:00
parent 7ecb1de169
commit 4553406ee8
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

@ -53,12 +53,9 @@ RUN tar -xzvf panel.tar.gz
# Install dependencies # Install dependencies
RUN composer install --no-dev --optimize-autoloader RUN composer install --no-dev --optimize-autoloader
# Change the owner of the files, recursively
RUN chown -R www-data:www-data /var/www/pterodactyl
FROM base as app FROM base as app
WORKDIR /var/www/pterodactyl WORKDIR /var/www/pterodactyl
USER www-data USER www-data
COPY --from=builder /var/www/pterodactyl /var/www/ptereodactyl COPY --from=builder --chown=www-data:www-data /var/www/pterodactyl /var/www/pterodactyl