mrbeliever commited on
Commit
c7d1de7
·
verified ·
1 Parent(s): 47cf782

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Python slim image as the base
2
+ FROM python:3.11-slim
3
+
4
+ # Set the working directory in the container
5
+ WORKDIR /app
6
+
7
+ # Copy the application files into the container
8
+ COPY app.py .
9
+ COPY requirements.txt .
10
+ COPY config.toml /root/.streamlit/config.toml
11
+
12
+ # Install system dependencies required for edge-tts and other libraries
13
+ RUN apt-get update && apt-get install -y \
14
+ libsndfile1 \
15
+ && rm -rf /var/lib/apt/lists/*
16
+
17
+ # Install Python dependencies from requirements.txt
18
+ RUN pip install --no-cache-dir -r requirements.txt
19
+
20
+ # Expose the port Streamlit uses
21
+ EXPOSE 8501
22
+
23
+ # Command to run the Streamlit app
24
+ CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]