Update Dockerfile
Browse files- Dockerfile +11 -0
Dockerfile
CHANGED
|
@@ -1,7 +1,18 @@
|
|
| 1 |
FROM python:3.9-slim
|
|
|
|
|
|
|
| 2 |
WORKDIR /app
|
|
|
|
|
|
|
| 3 |
COPY requirements.txt .
|
|
|
|
| 4 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
| 5 |
COPY . .
|
|
|
|
|
|
|
| 6 |
EXPOSE 5000
|
|
|
|
|
|
|
| 7 |
CMD ["python", "tts_script.py"]
|
|
|
|
| 1 |
FROM python:3.9-slim
|
| 2 |
+
|
| 3 |
+
# Set working directory
|
| 4 |
WORKDIR /app
|
| 5 |
+
|
| 6 |
+
# Install dependencies
|
| 7 |
COPY requirements.txt .
|
| 8 |
+
RUN apt-get update && apt-get install -y ffmpeg
|
| 9 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
+
|
| 11 |
+
# Copy the application
|
| 12 |
COPY . .
|
| 13 |
+
|
| 14 |
+
# Expose the Flask port
|
| 15 |
EXPOSE 5000
|
| 16 |
+
|
| 17 |
+
# Run the script
|
| 18 |
CMD ["python", "tts_script.py"]
|