CB commited on
Commit
e738f10
·
verified ·
1 Parent(s): 7a62778

Update dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +4 -21
dockerfile CHANGED
@@ -1,28 +1,11 @@
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"]
 
1
  FROM python:3.9.18-slim-bullseye
 
 
2
  WORKDIR /app
3
+ RUN apt-get update && apt-get -y upgrade && apt-get install -y ffmpeg
4
+ RUN mkdir /app/data && mkdir /app/.streamlit
 
 
 
 
 
 
 
5
  COPY requirements.txt /app/requirements.txt
6
  COPY .streamlit/config.toml /app/.streamlit/config.toml
7
  COPY streamlit_app.py /app
 
 
8
  RUN pip install --upgrade pip
 
 
9
  RUN pip install -r requirements.txt
10
+ EXPOSE 8501
11
+ CMD ["streamlit", "run", "streamlit_app.py", "--server.port", "8501"]