Skip to content

A self-hosted media server and file management system

chore: remove manifest generation from docker build and make it generate at runtime

aminnausinf521031d2556
diff --git a/.github/workflows/ci-docker-release.yml b/.github/workflows/ci-docker-release.yml
index e99ae0dd..f379b513 100644
--- a/.github/workflows/ci-docker-release.yml
+++ b/.github/workflows/ci-docker-release.yml
@@ -145,9 +145,13 @@ jobs:
with:
fetch-depth: 0
+ - name: Verify Git Repo Exists
+ run: git rev-parse --short HEAD
+
- name: Update .env.docker
run: |
sed -i "s/DOCKER_RELEASE=.*/DOCKER_RELEASE=${{ needs.get-release-tags.outputs.docker-tag }}/" docker/.env.docker
+
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
diff --git a/Dockerfile b/Dockerfile
index a09beca1..3921f9fc 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -88,6 +88,7 @@ RUN docker-php-serversideup-set-id www-data "$USER_ID":"$GROUP_ID" && \
exiftool \
ffmpeg \
freetype \
+ git \
harfbuzz \
nodejs \
npm \
@@ -118,17 +119,11 @@ COPY --chown=www-data:www-data . .
# Copy .env and set up Laravel
COPY --chown=www-data:www-data .env.example .env
+# Copy .git folder for manifest generation at runtime
+COPY --chown=www-data:www-data .git .git
+
# Generate manifest, set permissions for Laravel runtime and generate chrome config directories
RUN composer dump-autoload && \
- apk add --no-cache git && \
- git config --global --add safe.directory /var/www/html && \
- php artisan app:manifest && \
- echo "--- Manifest contents ---" && \
- cat public/manifest.json && \
- echo "--- Git HEAD ---" && \
- git rev-parse --short HEAD || echo "Git not working" && \
- rm -rf .git && \
- apk del git && \
mkdir -p /var/www/html/storage/app/chrome/.config && \
chown -R www-data:www-data /var/www/html/storage && \
chmod -R g+ws /var/www/html/storage && \
diff --git a/docker/entrypoint.d/1-keys.sh b/docker/entrypoint.d/1-keys.sh
index 8e421c0b..3d15ece7 100644
--- a/docker/entrypoint.d/1-keys.sh
+++ b/docker/entrypoint.d/1-keys.sh
@@ -51,4 +51,4 @@ else
echo "Updated Laravel .env with reverb keys."
fi
-# php artisan app:manifest
+php artisan app:manifest