Asad235 commited on
Commit
efe4fae
·
verified ·
1 Parent(s): 3b94de9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -18
Dockerfile CHANGED
@@ -2,30 +2,23 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- ENV PYTHONUNBUFFERED=1
6
- ENV HF_HOME=/app/cache
7
-
8
  RUN apt-get update && apt-get install -y \
9
- git gcc g++ \
 
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
- RUN pip install --upgrade pip
13
- RUN pip install edge_tts discord
14
- # 🔥 IMPORTANT: stable versions (no numpy2 crash, no torch issues)
15
- RUN pip install --no-cache-dir \
16
- numpy==1.26.4 \
17
- torch==2.2.2 \
18
- torchvision \
19
- transformers==4.37.2 \
20
- accelerate \
21
- sentencepiece \
22
- gradio \
23
- pillow \
24
- einops \
25
- timm
26
 
 
27
  COPY app3.py .
28
 
 
29
  EXPOSE 7860
30
 
 
31
  CMD ["python", "app3.py"]
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install system dependencies
 
 
6
  RUN apt-get update && apt-get install -y \
7
+ gcc \
8
+ g++ \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
+ # Copy requirements
12
+ #COPY requirements.txt .
13
+
14
+ # Install Python packages
15
+ RUN pip install flask discord
 
 
 
 
 
 
 
 
 
16
 
17
+ # Copy app
18
  COPY app3.py .
19
 
20
+ # Expose port 7860 for Hugging Face Spaces
21
  EXPOSE 7860
22
 
23
+ # Run bot
24
  CMD ["python", "app3.py"]