Spaces:
Runtime error
Runtime error
Commit
·
a57943c
1
Parent(s):
74770a2
Added docker file
Browse files- Dockerfile +20 -0
Dockerfile
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.9
|
| 2 |
+
|
| 3 |
+
# Update packages and install espeak
|
| 4 |
+
RUN apt-get update && apt-get install -y espeak
|
| 5 |
+
|
| 6 |
+
# Install Python package dependencies
|
| 7 |
+
COPY requirements.txt /app/requirements.txt
|
| 8 |
+
RUN pip install --no-cache-dir -r /app/requirements.txt
|
| 9 |
+
|
| 10 |
+
# Copy the app files
|
| 11 |
+
COPY . /app
|
| 12 |
+
|
| 13 |
+
# Set the working directory
|
| 14 |
+
WORKDIR /app
|
| 15 |
+
|
| 16 |
+
# Expose the Streamlit port
|
| 17 |
+
EXPOSE 8501
|
| 18 |
+
|
| 19 |
+
# Start the Streamlit app
|
| 20 |
+
CMD ["streamlit", "run", "app.py"]
|