Matias Macias Gomez commited on
Commit
4c4bb87
·
1 Parent(s): b745816

added docker file

Browse files
Files changed (1) hide show
  1. dockerfile +28 -0
dockerfile ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9.18-slim-bullseye
2
+
3
+ # Set the working directory to /app
4
+ WORKDIR /app
5
+
6
+ # install ffmpeg
7
+ RUN apt-get update && apt-get -y upgrade
8
+
9
+ # Create folders
10
+ RUN mkdir /app/data
11
+ RUN mkdir /app/.streamlit
12
+
13
+ # Copy the current directory contents into the container at /app
14
+ COPY requirements.txt /app/requirements.txt
15
+ COPY .streamlit/config.toml /app/.streamlit/config.toml
16
+ COPY streamlit_app.py /app
17
+
18
+ # Install any needed packages specified in requirements.txt
19
+ RUN pip install --upgrade pip
20
+
21
+ # RUN pip install manimpango
22
+ RUN pip install -r requirements.txt
23
+
24
+ # Make port 8502 available to the world outside this container
25
+ EXPOSE 8502
26
+
27
+ # Run app.py when the container launches
28
+ CMD ["streamlit", "run", "streamlit_app.py", "--server.port", "8502","> dev/null"]