jackgaletti commited on
Commit
a9c870a
·
verified ·
1 Parent(s): 4c24a64

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -2
Dockerfile CHANGED
@@ -1,5 +1,12 @@
1
  FROM python:3.9
 
2
  WORKDIR /app
 
3
  COPY . /app
4
- RUN pip install -r requirements.txt
5
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
 
 
 
1
  FROM python:3.9
2
+
3
  WORKDIR /app
4
+
5
  COPY . /app
6
+
7
+ # Ensure cache directory is writable
8
+ RUN mkdir -p /app/cache
9
+
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
+
12
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]