Gintarė Zokaitytė commited on
Commit
24b80f5
·
1 Parent(s): ffe022c

Add Dockerfile for HuggingFace Spaces

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install dependencies
6
+ COPY requirements.txt .
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
+
9
+ # Copy app files
10
+ COPY app.py .
11
+ COPY .streamlit .streamlit
12
+
13
+ # Expose port
14
+ EXPOSE 7860
15
+
16
+ # Run streamlit
17
+ CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]