Fix symlink for tinfoil

This commit is contained in:
Fabián Gonzalo Artur de la Villarmois
2025-12-26 21:15:47 +13:00
parent 802be82d32
commit 15b9c17b99
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -27,6 +27,10 @@ RUN npm install && npm run build
# Create storage link
RUN php artisan storage:link
# Copy entrypoint script
COPY entrypoint.sh /etc/cont-init.d/99-fix-symlink
RUN chmod +x /etc/cont-init.d/99-fix-symlink
# Fix permissions for Laravel storage and bootstrap/cache
# Use numeric IDs (1000:1000 from PUID/PGID in docker-compose)
RUN chown -R 1000:1000 /app/www && \
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
# Recreate storage symlink after volumes are mounted
rm -rf /app/www/public/games
ln -sfn ../storage/app/public/games /app/www/public/games