agentsay commited on
Commit
7036797
·
verified ·
1 Parent(s): 1c63d8d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -13
Dockerfile CHANGED
@@ -1,36 +1,31 @@
1
  FROM python:3.11-slim
2
 
3
- # Set working directory
4
  WORKDIR /app
5
 
6
- # Install system dependencies for OpenCV and other required libraries
7
  RUN apt-get update && apt-get install -y --no-install-recommends \
8
  libgl1 \
9
  libglib2.0-0 \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
- # Create directories with writable permissions
13
  RUN mkdir -p /app/Uploads /app/cache /app/models /app/data && chmod -R 777 /app/Uploads /app/cache /app/models /app/data
14
 
15
- # Set HF_HOME for huggingface_hub cache
16
  ENV HF_HOME=/app/cache
17
 
18
- # Copy specific directories and files
19
  COPY data /app/data
20
  COPY models /app/models
21
  COPY requirements.txt /app/
22
  COPY app.py /app/
23
- COPY config.py /app/
24
 
25
- COPY engine.py /app/
26
-
27
- COPY futureWeather.py /app/
28
- # COPY . . # Copy remaining files (if any)
29
-
30
- # Install Python dependencies
31
  RUN pip install python-multipart
32
  RUN pip install --no-cache-dir -r requirements.txt
33
 
34
- # Expose the port for Hugging Face Spaces
 
 
35
  EXPOSE 7860
36
  CMD ["python", "app.py"]
 
1
  FROM python:3.11-slim
2
 
 
3
  WORKDIR /app
4
 
5
+ # Install system dependencies
6
  RUN apt-get update && apt-get install -y --no-install-recommends \
7
  libgl1 \
8
  libglib2.0-0 \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
+ # Create directories
12
  RUN mkdir -p /app/Uploads /app/cache /app/models /app/data && chmod -R 777 /app/Uploads /app/cache /app/models /app/data
13
 
14
+ # Set HF_HOME
15
  ENV HF_HOME=/app/cache
16
 
17
+ # Copy data folder and other files
18
  COPY data /app/data
19
  COPY models /app/models
20
  COPY requirements.txt /app/
21
  COPY app.py /app/
 
22
 
23
+ # Install dependencies
 
 
 
 
 
24
  RUN pip install python-multipart
25
  RUN pip install --no-cache-dir -r requirements.txt
26
 
27
+ # Debug: List files to verify
28
+ RUN ls -la /app/data
29
+
30
  EXPOSE 7860
31
  CMD ["python", "app.py"]