# Vibn IDE — pull the custom-compiled image and layer in the sync server
FROM northamerica-northeast1-docker.pkg.dev/master-ai-484822/vibn-ide/theia:latest

USER root

# Add sync-server for agent runner git-pull trigger
COPY sync-server.js /sync-server.js
RUN chmod 755 /sync-server.js

# Override startup script to launch sync server alongside Theia
COPY startup.sh /startup.sh
RUN chmod +x /startup.sh

EXPOSE 3000 3001

USER theia

ENTRYPOINT ["/startup.sh"]
