fix(export): make AI converter build offline
Build, Push and Deploy / build (push) Successful in 6s
Build, Push and Deploy / deploy (push) Successful in 14s

This commit is contained in:
lai_hong
2026-09-13 13:12:07 +08:00
parent 7a506114a2
commit d870d0ecf8
3 changed files with 75 additions and 30 deletions
+2 -4
View File
@@ -4,13 +4,11 @@ FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt \
&& useradd --system --no-create-home converter
RUN useradd --system --no-create-home converter
COPY app.py ./
USER converter
EXPOSE 8090
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8090"]
CMD ["python", "app.py"]