Update Dockerfile
Browse files- Dockerfile +8 -1
Dockerfile
CHANGED
|
@@ -1,9 +1,16 @@
|
|
| 1 |
FROM python:3.9
|
| 2 |
|
|
|
|
| 3 |
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
COPY . /app
|
| 5 |
|
|
|
|
| 6 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 7 |
-
RUN apt-get update && apt-get install -y espeak-ng
|
| 8 |
|
|
|
|
| 9 |
CMD ["python", "app.py"]
|
|
|
|
| 1 |
FROM python:3.9
|
| 2 |
|
| 3 |
+
# Set working directory
|
| 4 |
WORKDIR /app
|
| 5 |
+
|
| 6 |
+
# Install system dependencies
|
| 7 |
+
RUN apt-get update && apt-get install -y espeak-ng
|
| 8 |
+
|
| 9 |
+
# Copy project files
|
| 10 |
COPY . /app
|
| 11 |
|
| 12 |
+
# Install Python dependencies
|
| 13 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 14 |
|
| 15 |
+
# Run the Flask app
|
| 16 |
CMD ["python", "app.py"]
|