mirror of
https://github.com/azaion/detections.git
synced 2026-04-22 10:26:32 +00:00
26900d0aee
- Added image specifications for services in `docker-compose.demo-jetson.yml` and `docker-compose.jetson.yml` to streamline deployment. - Updated `Dockerfile.gpu` to use the development version of the CUDA runtime for enhanced compatibility. - Modified `Dockerfile.jetson` to switch to a newer JetPack base image and adjusted the requirements file to include additional dependencies for improved functionality. - Removed obsolete deployment scripts and calibration cache generation script to clean up the project structure. Made-with: Cursor
14 lines
567 B
Docker
14 lines
567 B
Docker
FROM nvidia/cuda:12.2.0-devel-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
|
|
ENV PYTHONPATH=/app/src
|
|
RUN adduser --disabled-password --no-create-home --gecos "" appuser \
|
|
&& chown -R appuser /app
|
|
USER appuser
|
|
EXPOSE 8080
|
|
CMD ["python3", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]
|