fix(export): make AI converter build offline
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user