FROM cloudron/ai.librechat.cloudronapp:202610150224320000

# Copy custom configuration and patches into the image.
COPY librechat.yaml /app/data/librechat.yaml
COPY patches/keyBroker.js /app/code/librechat/api/server/controllers/auth/keyBroker.js
COPY patches/oauth.js /app/code/librechat/api/server/controllers/auth/oauth.js

RUN chmod 644 /app/data/librechat.yaml \
    && chmod 644 /app/code/librechat/api/server/controllers/auth/keyBroker.js \
    && chmod 644 /app/code/librechat/api/server/controllers/auth/oauth.js
