Add advanced canvas editing and Ubuntu deployment

This commit is contained in:
2026-07-14 20:32:42 +08:00
parent f8a907e7c5
commit bf2b138007
19 changed files with 2026 additions and 255 deletions
+7 -1
View File
@@ -22,15 +22,21 @@ COPY EfficientWordCloud ./EfficientWordCloud
COPY assets ./assets
COPY start-dev.sh ./
COPY wordcloud_generate_hybrid.py ./
COPY docker-entrypoint.sh ./
# Optional design-template seeds (copied into volume on first boot)
COPY service_design_templates ./service_design_templates_seed
# Build the C++ extension in-place
RUN cd EfficientWordCloud && python setup.py build_ext --inplace
# Runtime data directories (will be mounted as volumes)
RUN mkdir -p service_workspace service_assets service_projects service_design_templates service_fonts
RUN mkdir -p service_workspace service_assets service_projects service_design_templates service_fonts \
&& chmod +x /app/docker-entrypoint.sh
EXPOSE 8000
ENV PYTHONPATH=/app/EfficientWordCloud
ENTRYPOINT ["/app/docker-entrypoint.sh"]
CMD ["uvicorn", "service.app:app", "--host", "0.0.0.0", "--port", "8000"]