Update Dockerfile.gpu
This commit is contained in:
parent
d2636c2f95
commit
ef1a198424
1 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ RUN python3 -m venv /app/venv
|
||||||
ENV PATH="/app/venv/bin:$PATH"
|
ENV PATH="/app/venv/bin:$PATH"
|
||||||
|
|
||||||
# Install PyTorch with CUDA support and other dependencies
|
# Install PyTorch with CUDA support and other dependencies
|
||||||
RUN pip3 install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124 && \
|
RUN pip3 install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128 && \
|
||||||
pip3 install --no-cache-dir -r requirements.txt
|
pip3 install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
# Copy project files
|
# Copy project files
|
||||||
|
|
@ -44,4 +44,4 @@ ENV PYTHONUNBUFFERED=1 \
|
||||||
EXPOSE 5005
|
EXPOSE 5005
|
||||||
|
|
||||||
# Run FastAPI server with uvicorn
|
# Run FastAPI server with uvicorn
|
||||||
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "5005", "--workers", "1"]
|
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "5005", "--workers", "1"]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue