FROM twentycrm/twenty:v2.50.0
USER root
COPY adapter.cjs patch.cjs Dockerfile /app/packages/twenty-server/subconscious-auth0/
RUN tar -czf /app/packages/twenty-server/subconscious-auth0/source.tar.gz \
      -C /app/packages/twenty-server/subconscious-auth0 adapter.cjs patch.cjs Dockerfile \
    && node /app/packages/twenty-server/subconscious-auth0/patch.cjs
USER 1000
