RDS777 commited on
Commit
8b50a07
·
verified ·
1 Parent(s): 9801f49

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -1
Dockerfile CHANGED
@@ -2,12 +2,17 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
 
 
 
 
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
8
  COPY app.py .
9
 
10
- RUN mkdir -p /tmp/workspace
11
 
12
  EXPOSE 7860
13
 
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install system deps for compilation (numpy, sentence-transformers)
6
+ RUN apt-get update && apt-get install -y --no-install-recommends \
7
+ build-essential \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
  COPY requirements.txt .
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
  COPY app.py .
14
 
15
+ RUN mkdir -p /tmp/workspace /tmp/nexus_data
16
 
17
  EXPOSE 7860
18