fix dockerfile, add build CI, deploy example
Docker server image / build-and-push (push) Failing after 1m18s

This commit is contained in:
2026-03-27 15:19:30 -07:00
parent 09d38edc43
commit 60cf8c231c
4 changed files with 112 additions and 2 deletions
+14 -2
View File
@@ -2,20 +2,32 @@ FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV PYTHONPATH=/app/gen/python:/app/python/packages/officeconvert/src:/app/python/packages/server/src
# Protobuf/gRPC stubs live outside the venv-installed packages
ENV PYTHONPATH=/app/gen/python
# libreoffice: soffice (headless PPTX→PDF); poppler-utils: pdftoppm; fonts-dejavu-core: baseline fonts
RUN apt-get update && apt-get install -y --no-install-recommends \
libreoffice \
libreoffice-impress \
poppler-utils \
fonts-dejavu-core \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Hatch (pyproject readme = ../../../README.md) resolves from each package dir; repo root must exist
COPY README.md /app/README.md
COPY python /app/python
COPY gen /app/gen
RUN pip install --no-cache-dir -e /app/python/packages/officeconvert -e /app/python/packages/server
RUN pip install --no-cache-dir uv
WORKDIR /app/python
RUN uv sync --frozen --all-packages
ENV PATH="/app/python/.venv/bin:$PATH"
WORKDIR /app
EXPOSE 8080