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
13 changes: 7 additions & 6 deletions Dockerfile.mug
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,19 @@ COPY ./themes/MUG/invenio.cfg ${INVENIO_INSTANCE_PATH}

RUN invenio collect --verbose && invenio webpack create

# Now copy remaining instance files (these can override/extend the discovered bundles)
# copy remaining instance files (these can override/extend the discovered bundles)
COPY ./app_data/ ${INVENIO_INSTANCE_PATH}/app_data/
COPY ./assets/ ${INVENIO_INSTANCE_PATH}/assets/
COPY ./static/ ${INVENIO_INSTANCE_PATH}/static/
COPY ./translations ${INVENIO_INSTANCE_PATH}/translations/
COPY ./templates ${INVENIO_INSTANCE_PATH}/templates/

COPY themes/MUG/templates/ ${INVENIO_INSTANCE_PATH}/templates/
# copy MUG-specific templates (e.g., comment-template.html)
COPY ./themes/MUG/templates/ ${INVENIO_INSTANCE_PATH}/templates/

# Replace variables.less
COPY ./themes/MUG/variables.less /opt/env/lib/python3.12/site-packages/invenio_override/assets/semantic-ui/less/invenio_override/variables.less
COPY ./themes/MUG/overrides.less /opt/env/lib/python3.12/site-packages/invenio_override/assets/semantic-ui/less/invenio_override/overrides.less
COPY themes/MUG/variables.less /opt/env/lib/python3.12/site-packages/invenio_override/assets/semantic-ui/less/invenio_override/variables.less
COPY themes/MUG/overrides.less /opt/env/lib/python3.12/site-packages/invenio_override/assets/semantic-ui/less/invenio_override/overrides.less

WORKDIR ${INVENIO_INSTANCE_PATH}/assets
RUN pnpm install
Expand All @@ -41,10 +42,10 @@ COPY --from=builder ${INVENIO_INSTANCE_PATH}/templates ${INVENIO_INSTANCE_PATH}/

WORKDIR ${WORKING_DIR}/src
COPY ./docker/uwsgi/ ${INVENIO_INSTANCE_PATH}
# invenio.cfg already copied in builder stage, but ensure it's in final location
# invenio.cfg already copied in builder stage, ensure it's in final location
COPY ./themes/MUG/invenio.cfg ${INVENIO_INSTANCE_PATH}
RUN chown invenio:invenio .

USER invenio

ENTRYPOINT [ "bash", "-c"]
ENTRYPOINT [ "bash", "-c"]

This file was deleted.