From 5d72f103e7daeb8fc30613845617187b2e6f9d17 Mon Sep 17 00:00:00 2001 From: Cian Hughes Date: Thu, 8 May 2025 10:32:55 +0100 Subject: [PATCH] Attempt to fix plugin installation --- docker-compose.yaml | 3 --- invenio/Dockerfile | 6 ++++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 1b6bce7..53fce8a 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -48,9 +48,6 @@ services: volumes: - uploaded_data:/opt/invenio/var/instance/data - archived_data:/opt/invenio/var/instance/archive - - ./invenio/assets:/opt/invenio/var/instance/static/custom_assets # Add static assets for theming - - ./invenio/plugin:/opt/invenio/var/instance/plugin # Add plugin for customisations - - ./invenio/invenio.cfg:/opt/invenio/var/instance/invenio.cfg # Override the config with our custom one environment: # Production mode - INVENIO_ENV=production diff --git a/invenio/Dockerfile b/invenio/Dockerfile index e2fa151..5f5d125 100644 --- a/invenio/Dockerfile +++ b/invenio/Dockerfile @@ -1,5 +1,11 @@ FROM ghcr.io/front-matter/invenio-rdm-starter:v12.0.13.4 +# Copy config and assets +COPY invenio.cfg /opt/invenio/var/instance/invenio.cfg +COPY assets /opt/invenio/var/instance/static/custom_assets + +# Add the customisation plugin RUN /opt/invenio/.venv/bin/python -m ensurepip +COPY plugin /opt/invenio/var/instance/static/plugin RUN /opt/invenio/.venv/bin/python -m pip install /opt/invenio/var/instance/static/plugin RUN /opt/invenio/.venv/bin/python -m pip uninstall pip