feat: expose port 3001 for sync-server

This commit is contained in:
2026-03-07 21:36:58 +00:00
parent 2073f030d1
commit f2da36afb1

View File

@@ -1,26 +1,20 @@
# Vibn IDE — Custom Theia workspace image # Vibn IDE — Custom Theia workspace image
# Wraps the official Theia Blueprint with a startup script that:
# 1. Clones the project's Gitea repo on first boot (using GITEA_REPO + GITEA_TOKEN)
# 2. Starts Theia pre-loaded with the cloned folder open
FROM ghcr.io/eclipse-theia/theia-blueprint/theia-ide:latest FROM ghcr.io/eclipse-theia/theia-blueprint/theia-ide:latest
USER root USER root
# git is needed for clone — install if not present
RUN apt-get update && apt-get install -y --no-install-recommends git && \ RUN apt-get update && apt-get install -y --no-install-recommends git && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
# Add startup script
COPY startup.sh /startup.sh COPY startup.sh /startup.sh
COPY sync-server.js /sync-server.js
RUN chmod +x /startup.sh && \ RUN chmod +x /startup.sh && \
chown theia:theia /startup.sh chown theia:theia /startup.sh /sync-server.js
# Ensure workspace dir exists and is owned by theia
RUN mkdir -p /home/project && chown -R theia:theia /home/project RUN mkdir -p /home/project && chown -R theia:theia /home/project
USER theia USER theia
EXPOSE 3000 EXPOSE 3000 3001
ENTRYPOINT ["/startup.sh"] ENTRYPOINT ["/startup.sh"]