-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
31cada8
commit d41df7d
Showing
3 changed files
with
25 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
FROM python:3.9-slim | ||
# Use an official Python runtime with NVIDIA CUDA support | ||
FROM nvidia/cuda:11.2.2-cudnn8-runtime-ubuntu20.04 | ||
|
||
WORKDIR /app | ||
|
||
# Copy your application files | ||
COPY . /app | ||
|
||
RUN pip install --no-cache-dir -r requirements.txt | ||
# Install Python and FastAPI dependencies | ||
RUN apt-get update && apt-get install -y python3-pip && \ | ||
pip3 install --no-cache-dir -r requirements.txt | ||
|
||
CMD uvicorn main:app --port=8000 --host=0.0.0.0 | ||
EXPOSE 8000 | ||
|
||
CMD uvicorn main:app --port=${PORT:-8000} --host=0.0.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters