Update Dockerfile
Browse files- 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 \
|