longjava2024 commited on
Commit
f58929b
·
verified ·
1 Parent(s): 7d7cf35

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -42
Dockerfile DELETED
@@ -1,42 +0,0 @@
1
- FROM python:3.10-slim
2
-
3
- WORKDIR /app
4
-
5
- ENV PYTHONUNBUFFERED=1 \
6
- HF_HUB_DISABLE_SYMLINKS_WARNING=1
7
-
8
- RUN apt-get update && apt-get install -y --no-install-recommends \
9
- git \
10
- build-essential \
11
- && rm -rf /var/lib/apt/lists/*
12
-
13
- RUN pip install --no-cache-dir --upgrade pip && \
14
- pip install --no-cache-dir \
15
- "torch==2.3.0" \
16
- torchvision \
17
- fastapi \
18
- uvicorn[standard] \
19
- "huggingface-hub>=0.23.2" \
20
- "transformers==4.44.2" \
21
- accelerate \
22
- einops \
23
- timm \
24
- pillow \
25
- requests
26
-
27
- # Tạo stub module flash_attn và bitsandbytes để tránh lỗi trên môi trường CPU-only
28
- RUN mkdir -p /usr/local/lib/python3.10/site-packages/flash_attn && \
29
- printf '%s\n' "def _not_available(*args, **kwargs):" \
30
- " raise ImportError('flash_attn is not available in this CPU-only build')" \
31
- "" \
32
- "__all__ = ['_not_available']" \
33
- > /usr/local/lib/python3.10/site-packages/flash_attn/__init__.py && \
34
- mkdir -p /usr/local/lib/python3.10/site-packages/bitsandbytes && \
35
- printf '%s\n' "raise ImportError('bitsandbytes is not available in this CPU-only build')" \
36
- > /usr/local/lib/python3.10/site-packages/bitsandbytes/__init__.py
37
-
38
- COPY app.py /app/app.py
39
-
40
- EXPOSE 7860
41
-
42
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]