# Skillphase changes: static branding only. Upstream code/licenses remain intact.
FROM twentycrm/twenty:v2.41.0@sha256:47bcefe4e497ceef232f149153a4a61379830f5c898b7da71a5b0e21fd5ea916
USER root
COPY --chown=1000:1000 build/payload /opt/skillphase-crm-branding
RUN node /opt/skillphase-crm-branding/apply-branding.mjs /app/packages/twenty-server/dist/front && \
    chown -R 1000:1000 /app/packages/twenty-server/dist/front
USER 1000
LABEL org.opencontainers.image.title="Skillphase CRM" \
      org.opencontainers.image.version="2.41.0-skillphase.1" \
      org.opencontainers.image.description="Skillphase-branded derivative of Twenty 2.41.0. See /skillphase-source/ for source and licenses." \
      org.opencontainers.image.base.name="twentycrm/twenty:v2.41.0" \
      org.opencontainers.image.revision="d1bb92d111f91529478da56aa677efbdba230c00"
