Angstormy commited on
Commit
7efbb38
·
verified ·
1 Parent(s): 0b8aeda

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -1
Dockerfile CHANGED
@@ -3,10 +3,15 @@ FROM python:3.10-slim
3
 
4
  # Set environment variables
5
  ENV PYTHONDONTWRITEBYTECODE 1
6
- # Install system dependencies
 
 
 
7
  RUN apt-get update && apt-get install -y \
8
  libgl1 \
9
  libglib2.0-0 \
 
 
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
  # Set working directory
 
3
 
4
  # Set environment variables
5
  ENV PYTHONDONTWRITEBYTECODE 1
6
+ ENV PYTHONUNBUFFERED 1
7
+ ENV PORT 7860
8
+
9
+ # Install system dependencies (OpenCV requires libgl1, libsm6, libxext6)
10
  RUN apt-get update && apt-get install -y \
11
  libgl1 \
12
  libglib2.0-0 \
13
+ libsm6 \
14
+ libxext6 \
15
  && rm -rf /var/lib/apt/lists/*
16
 
17
  # Set working directory