SanskrutiChopade commited on
Commit
b2c99a7
·
1 Parent(s): 34c7d1b
Files changed (2) hide show
  1. Dockerfile +36 -0
  2. requirements.txt +0 -0
Dockerfile ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the base Python image
2
+ FROM python:3.10
3
+
4
+ # Set the working directory
5
+ WORKDIR /home/user/app
6
+
7
+ # Install system dependencies
8
+ RUN apt-get update && apt-get install -y \
9
+ git \
10
+ git-lfs \
11
+ ffmpeg \
12
+ libsm6 \
13
+ libxext6 \
14
+ cmake \
15
+ rsync \
16
+ libgl1-mesa-glx \
17
+ curl \
18
+ && rm -rf /var/lib/apt/lists/* \
19
+ && git lfs install
20
+
21
+ # Install Rust and Cargo for compiling dependencies
22
+ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && \
23
+ . $HOME/.cargo/env
24
+
25
+ # Copy application files
26
+ COPY . .
27
+
28
+ # Install Python dependencies
29
+ RUN pip install --no-cache-dir pip==22.3.1
30
+ RUN pip install --no-cache-dir -r requirements.txt
31
+
32
+ # Expose Streamlit default port
33
+ EXPOSE 8501
34
+
35
+ # Command to run the app
36
+ CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
requirements.txt CHANGED
Binary files a/requirements.txt and b/requirements.txt differ