# Install branding package
RUN mkdir /openedx/brand-openedx
COPY ./brand-openedx /openedx/brand-openedx
RUN npm install '@edx/brand@file:/openedx/brand-openedx'

{% if BRANDING_FRONTEND_COMPONENT_HEADER_REPO is defined %}
# Install the frontend component header
RUN npm install '@edx/frontend-component-header@{{ BRANDING_FRONTEND_COMPONENT_HEADER_REPO }}'
{% endif %}

{% if BRANDING_FRONTEND_COMPONENT_FOOTER_REPO is defined %}
# Install the frontend component footer
RUN npm install '@edx/frontend-component-footer@{{ BRANDING_FRONTEND_COMPONENT_FOOTER_REPO }}'
{% endif %}

