Spaces:
Sleeping
Sleeping
Bot commited on
Commit ·
7b9016d
1
Parent(s): ccefa5f
Force instant python log flushing with PYTHONUNBUFFERED=1
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -1,5 +1,8 @@
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
|
|
|
|
|
|
|
|
|
| 3 |
# Install system dependencies (C++ compiler, OpenCV, FFmpeg)
|
| 4 |
RUN apt-get update && apt-get install -y \
|
| 5 |
build-essential \
|
|
@@ -21,7 +24,7 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 21 |
COPY . .
|
| 22 |
|
| 23 |
# Compile C++ Enhancer
|
| 24 |
-
RUN g++ -O3 enhancer.cpp -o enhancer $(pkg-config --cflags --libs opencv4)
|
| 25 |
|
| 26 |
# Expose port (Hugging Face Spaces runs on port 7860 by default)
|
| 27 |
EXPOSE 7860
|
|
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
| 3 |
+
# Force python stdout to print immediately to console logs
|
| 4 |
+
ENV PYTHONUNBUFFERED=1
|
| 5 |
+
|
| 6 |
# Install system dependencies (C++ compiler, OpenCV, FFmpeg)
|
| 7 |
RUN apt-get update && apt-get install -y \
|
| 8 |
build-essential \
|
|
|
|
| 24 |
COPY . .
|
| 25 |
|
| 26 |
# Compile C++ Enhancer
|
| 27 |
+
RUN g++ -O3 -pthread enhancer.cpp -o enhancer $(pkg-config --cflags --libs opencv4)
|
| 28 |
|
| 29 |
# Expose port (Hugging Face Spaces runs on port 7860 by default)
|
| 30 |
EXPOSE 7860
|