maylinejix commited on
Commit
fff06af
·
verified ·
1 Parent(s): 658465b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -11
Dockerfile CHANGED
@@ -1,26 +1,28 @@
1
- FROM python:3.9-slim
2
 
3
- # Install dependencies sistem dan build tools
 
 
4
  RUN apt-get update && apt-get install -y \
5
  git \
6
  ffmpeg \
7
  libsndfile1 \
8
- build-essential \
9
- gcc \
10
- g++ \
11
- python3-dev \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
- WORKDIR /app
15
-
16
  # Clone repository
17
  RUN git clone https://huggingface.co/spaces/HerzaJ/spleeter .
18
 
19
- # Install requirements Python
20
  RUN pip install --no-cache-dir -r requirements.txt
21
 
22
- # Expose port
 
 
 
 
 
 
 
23
  EXPOSE 7860
24
 
25
- # Jalankan aplikasi
26
  CMD ["python", "app.py"]
 
1
+ FROM python:3.8-slim
2
 
3
+ WORKDIR /app
4
+
5
+ # Install system dependencies
6
  RUN apt-get update && apt-get install -y \
7
  git \
8
  ffmpeg \
9
  libsndfile1 \
 
 
 
 
10
  && rm -rf /var/lib/apt/lists/*
11
 
 
 
12
  # Clone repository
13
  RUN git clone https://huggingface.co/spaces/HerzaJ/spleeter .
14
 
15
+ # Install Python requirements
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
+ # Set environment variables
19
+ ENV NUMBA_CACHE_DIR=/tmp
20
+ ENV MODEL_PATH=/tmp/pretrained_models
21
+ ENV PORT=7860
22
+
23
+ # Create temp directories with proper permissions
24
+ RUN mkdir -p /tmp/pretrained_models && chmod -R 777 /tmp
25
+
26
  EXPOSE 7860
27
 
 
28
  CMD ["python", "app.py"]