mirror of
https://github.com/azaion/detections.git
synced 2026-04-22 08:46:32 +00:00
9e5b0f2cc2
Made-with: Cursor
10 lines
433 B
Docker
10 lines
433 B
Docker
FROM nvidia/cuda:12.2.0-runtime-ubuntu22.04
|
|
RUN apt-get update && apt-get install -y python3 python3-pip python3-dev gcc libgl1 libglib2.0-0 && rm -rf /var/lib/apt/lists/*
|
|
WORKDIR /app
|
|
COPY requirements.txt requirements-gpu.txt ./
|
|
RUN pip3 install --no-cache-dir -r requirements-gpu.txt
|
|
COPY . .
|
|
RUN python3 setup.py build_ext --inplace
|
|
EXPOSE 8080
|
|
CMD ["python3", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]
|