fosters commited on
Commit
c44e5bc
·
verified ·
1 Parent(s): 23789bc

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -47
Dockerfile DELETED
@@ -1,47 +0,0 @@
1
- FROM pytorch/pytorch:2.1.0-cuda12.1-cudnn8-runtime
2
-
3
- # Set environment variables
4
- ENV PYTHONUNBUFFERED=1
5
- ENV GRADIO_SERVER_NAME=0.0.0.0
6
- ENV GRADIO_SERVER_PORT=7860
7
- ENV USE_DEEPSPEED=true
8
- ENV USE_FP16=true
9
- ENV USE_TORCH_COMPILE=true
10
- ENV MAX_CACHE_SIZE=10
11
- ENV HF_HOME=/app/cache
12
- ENV TRANSFORMERS_CACHE=/app/cache
13
-
14
- # Install system dependencies
15
- RUN apt-get update && apt-get install -y \
16
- git \
17
- ffmpeg \
18
- libsndfile1 \
19
- && rm -rf /var/lib/apt/lists/*
20
-
21
- # Create app directory
22
- WORKDIR /app
23
-
24
- # Copy requirements first for caching
25
- COPY requirements.txt .
26
-
27
- # Install Python dependencies
28
- RUN pip install --no-cache-dir --upgrade pip && \
29
- pip install --no-cache-dir -r requirements.txt
30
-
31
- # Install DeepSpeed with CUDA
32
- RUN pip install --no-cache-dir deepspeed
33
-
34
- # Copy application code
35
- COPY app.py .
36
-
37
- # Create cache directory
38
- RUN mkdir -p /app/cache
39
-
40
- # Set permissions for HF Spaces
41
- RUN chmod -R 777 /app
42
-
43
- # Expose port
44
- EXPOSE 7860
45
-
46
- # Run the application
47
- CMD ["python", "app.py"]