Ashkchamp commited on
Commit
0a62ada
·
verified ·
1 Parent(s): 972a5d3

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ # 1. System libs for OpenCV
4
+ RUN apt-get update && \
5
+ apt-get install -y --no-install-recommends \
6
+ libgl1-mesa-glx libglib2.0-0 libsm6 libxext6 libxrender1 libfontconfig1 && \
7
+ rm -rf /var/lib/apt/lists/*
8
+
9
+ # 2. Python deps
10
+ COPY requirements.txt /tmp/
11
+ RUN pip install --no-cache-dir -r /tmp/requirements.txt
12
+
13
+ # 3. App code
14
+ WORKDIR /app
15
+ COPY . /app
16
+
17
+ # 4. Expose the Streamlit port used by HF (7860 by default)
18
+ EXPOSE 7860
19
+
20
+ CMD ["streamlit", "run", "src/streamlit_app.py", \
21
+ "--server.port", "7860", \
22
+ "--server.address", "0.0.0.0"]