dpv007 commited on
Commit
840a4d4
·
verified ·
1 Parent(s): 9e644f1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -1,6 +1,10 @@
1
  # Use a small but recent base
2
  FROM python:3.10-slim
3
 
 
 
 
 
4
  # Allow apt installs for system deps (opencv needs libgl1, etc.)
5
  RUN apt-get update && apt-get install -y --no-install-recommends \
6
  build-essential \
 
1
  # Use a small but recent base
2
  FROM python:3.10-slim
3
 
4
+ # Create writable tmp directory early (HF Spaces requirement)
5
+ RUN mkdir -p /tmp && chmod -R 777 /tmp
6
+ ENV TMPDIR=/tmp
7
+
8
  # Allow apt installs for system deps (opencv needs libgl1, etc.)
9
  RUN apt-get update && apt-get install -y --no-install-recommends \
10
  build-essential \