Euryeth commited on
Commit
be2d946
·
verified ·
1 Parent(s): efdd63d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -3
Dockerfile CHANGED
@@ -1,6 +1,10 @@
1
  FROM python:3.9
2
- WORKDIR /code
3
- COPY requirements.txt .
4
- RUN pip install --no-cache-dir -r requirements.txt
 
 
5
  COPY . .
 
 
6
  CMD ["python", "api.py"]
 
1
  FROM python:3.9
2
+
3
+ # Create writable cache directory
4
+ RUN mkdir -p /tmp/cache && chmod 777 /tmp/cache
5
+
6
+ WORKDIR /app
7
  COPY . .
8
+ RUN pip install --no-cache-dir -r requirements.txt
9
+
10
  CMD ["python", "api.py"]