leedoming commited on
Commit
de2c7b8
1 Parent(s): 4531600

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use Python 3.10
2
+ FROM python:3.10-slim
3
+
4
+ # Set the working directory in the container
5
+ WORKDIR /app
6
+
7
+ # Copy the current directory contents into the container at /app
8
+ COPY . /app
9
+
10
+ # Install system dependencies
11
+ RUN apt-get update && apt-get install -y \
12
+ build-essential \
13
+ curl \
14
+ software-properties-common \
15
+ git \
16
+ && rm -rf /var/lib/apt/lists/*
17
+
18
+ # Upgrade pip and install required python packages
19
+ RUN pip install --no-cache-dir --upgrade pip
20
+ RUN pip install --no-cache-dir -r requirements.txt
21
+
22
+ # Make port 8501 available to the world outside this container
23
+ EXPOSE 8501
24
+
25
+ # Run app.py when the container launches
26
+ CMD ["streamlit", "run", "app.py"]