webolavo commited on
Commit
ee26264
·
verified ·
1 Parent(s): ecc7dfc

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -40
Dockerfile DELETED
@@ -1,40 +0,0 @@
1
- FROM python:3.10-slim
2
-
3
- ENV PYTHONDONTWRITEBYTECODE=1 \
4
- PYTHONUNBUFFERED=1 \
5
- YOLO_CONFIG_DIR=/home/appuser/.config/Ultralytics \
6
- OMP_NUM_THREADS=2 \
7
- MKL_NUM_THREADS=2 \
8
- PORT=7860
9
-
10
- RUN apt-get update && apt-get install -y --no-install-recommends \
11
- ca-certificates \
12
- git \
13
- libgl1 \
14
- libglib2.0-0 \
15
- libgomp1 \
16
- && rm -rf /var/lib/apt/lists/*
17
-
18
- RUN useradd --create-home --uid 1000 appuser \
19
- && mkdir -p /app /home/appuser/.config/Ultralytics \
20
- && chown -R appuser:appuser /app /home/appuser
21
-
22
- WORKDIR /app
23
-
24
- COPY requirements.txt .
25
- RUN pip install --no-cache-dir --upgrade pip \
26
- && pip install --no-cache-dir -r requirements.txt
27
-
28
- COPY app.py .
29
-
30
- # Download the YOLOE-11-M weights and text encoder during the image build,
31
- # compute this project's fixed vocabulary once, and save it as an NPZ profile.
32
- # API requests never execute the text encoder and require no network downloads.
33
- RUN python -c "from app import prepare_model_assets; prepare_model_assets()" \
34
- && chown -R appuser:appuser /app /home/appuser
35
-
36
- USER appuser
37
-
38
- EXPOSE 7860
39
-
40
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]