Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-nextcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
images: ghcr.io/${{ github.repository }}
tags: |
type=raw,value=latest
type=raw,value=32
type=raw,value=32.0.6
type=raw,value=build-${{ github.run_number }}

- name: Build and push Docker image
Expand Down
42 changes: 34 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,44 @@
FROM nextcloud:latest
# FROM nextcloud:32.0.6

ARG VERSION=32
# ARG VERSION=32.0.6

# # Update package lists
# RUN apt-get update

# # Install ffmpeg
# RUN apt-get install -y ffmpeg

# # Install nano
# RUN apt-get install -y nano

# #Install Node & NPM
# RUN apt-get install -y nodejs npm

# # list directories
# RUN ls -lh


FROM nextcloud:32.0.6
ARG VERSION=32.0.6

# Update package lists
RUN apt-get update

# Install ffmpeg
RUN apt-get install -y ffmpeg

# Install nano
RUN apt-get install -y nano

#Install Node & NPM
# Install Node & NPM
RUN apt-get install -y nodejs npm

# list directories

# Install Java (needed by libresign)
RUN apt-get install -y default-jre-headless

# Copy the occ hook script — runs on first container start after Nextcloud is ready
COPY init-libresign.sh /docker-entrypoint-hooks.d/post-installation/init-libresign.sh
RUN chmod +x /docker-entrypoint-hooks.d/post-installation/init-libresign.sh

# List directories (optional debug step)
RUN ls -lh
7 changes: 7 additions & 0 deletions init-libresign.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
set -e

echo "Running libresign Java install..."
php /var/www/html/occ libresign:install --java
echo "libresign Java install complete."

Loading