zyliu commited on
Commit
ca9eab4
·
1 Parent(s): 961836e

add dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Python image as a base image
2
+ FROM python:3.8-slim-buster
3
+
4
+ # Install MongoDB
5
+ RUN apt-get update && apt-get install -y mongodb
6
+
7
+ # Copy the app code to the image
8
+ COPY . /app
9
+ WORKDIR /app
10
+
11
+ # Install the app dependencies
12
+ RUN pip install -r requirements.txt
13
+
14
+ # Run the app
15
+ CMD ["streamlit", "run", "app.py"]