win2win commited on
Commit
675b60c
·
verified ·
1 Parent(s): fb10830

Update dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +9 -1
dockerfile CHANGED
@@ -1,9 +1,17 @@
1
  FROM python:3.9-slim
2
 
 
 
 
 
 
 
 
 
3
  WORKDIR /app
4
  COPY . .
5
 
 
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
8
- EXPOSE 8000
9
  CMD ["python", "app.py"]
 
1
  FROM python:3.9-slim
2
 
3
+ # System dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ libopenblas-dev \ # For numpy
6
+ && rm -rf /var/lib/apt/lists/*
7
+
8
+ # Cache directory
9
+ RUN mkdir -p /tmp/huggingface && chmod 777 /tmp/huggingface
10
+
11
  WORKDIR /app
12
  COPY . .
13
 
14
+ # Install Python deps
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
 
17
  CMD ["python", "app.py"]