Mairaaa commited on
Commit
8711428
·
verified ·
1 Parent(s): 9f444ae

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM rust:slim
2
+
3
+ # Install Python and dependencies
4
+ RUN apt-get update && apt-get install -y python3 python3-pip && rm -rf /var/lib/apt/lists/*
5
+ RUN pip3 install --upgrade pip
6
+
7
+ # Set the working directory
8
+ WORKDIR /app
9
+
10
+ # Copy requirements
11
+ COPY requirements.txt .
12
+
13
+ # Install dependencies
14
+ RUN pip install -r requirements.txt
15
+
16
+ # Copy project files
17
+ COPY . .
18
+
19
+ # Command to run your application
20
+ CMD ["streamlit", "run", "app.py"]