mirror of
https://github.com/remsky/Kokoro-FastAPI.git
synced 2025-08-05 16:48:53 +00:00
Update Dockerfile
This commit is contained in:
parent
d6a72e517e
commit
96d1853408
1 changed files with 7 additions and 4 deletions
11
Dockerfile
11
Dockerfile
|
@ -2,12 +2,15 @@ FROM python:3.10-slim
|
|||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt .
|
||||
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copia os fontes primeiro
|
||||
COPY . .
|
||||
|
||||
# Instala pipreqs temporariamente
|
||||
RUN pip install pipreqs && \
|
||||
pipreqs ./api/src --force && \
|
||||
pip install --no-cache-dir -r requirements.txt && \
|
||||
pip uninstall -y pipreqs
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["uvicorn", "api.src.main:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
|
|
Loading…
Add table
Reference in a new issue