hithereab commited on
Commit
e66c788
·
1 Parent(s): e969d2d

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use Python 3.11.6 as a base image
2
+ FROM python:3.11.6-slim
3
+
4
+ # Set the working directory
5
+ WORKDIR /app
6
+
7
+ # Install git
8
+ RUN apt-get update && apt-get install -y git
9
+
10
+ # Expose the GitHub repository URL secret at build time and clone the repository
11
+ RUN --mount=type=secret,id=GITHUB_REPO_URL,mode=0444,required=true \
12
+ git clone https://github.com/hayderab/Teaching-bot.git
13
+
14
+ # Install Python dependencies
15
+ COPY requirements.txt .
16
+ RUN pip install --no-cache-dir -r requirements.txt
17
+
18
+ # Copy the content of the local src directory to the working directory
19
+ COPY . /app
20
+
21
+ # Expose the port that your app will run on
22
+ EXPOSE 8501
23
+
24
+ # Command to run the application
25
+ CMD ["streamlit", "run", "lc_main.py"]