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