Spaces:
Running
on
Zero
Running
on
Zero
Create Dockerfile
Browse files- Dockerfile +28 -0
Dockerfile
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use Ubuntu 22.04 as the base image
|
2 |
+
FROM ubuntu:22.04
|
3 |
+
|
4 |
+
# Set environment variables to prevent interactive prompts during install
|
5 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
6 |
+
|
7 |
+
# Update and install system dependencies
|
8 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
9 |
+
espeak \
|
10 |
+
espeak-ng \
|
11 |
+
ffmpeg \
|
12 |
+
python3 \
|
13 |
+
python3-pip \
|
14 |
+
build-essential \
|
15 |
+
&& rm -rf /var/lib/apt/lists/*
|
16 |
+
|
17 |
+
# Install Python dependencies
|
18 |
+
COPY requirements.txt /tmp/
|
19 |
+
RUN pip3 install --no-cache-dir -r /tmp/requirements.txt
|
20 |
+
|
21 |
+
# Set working directory
|
22 |
+
WORKDIR /app
|
23 |
+
|
24 |
+
# Copy application files
|
25 |
+
COPY . /app
|
26 |
+
|
27 |
+
# Define the command to run your application
|
28 |
+
CMD ["python3", "app.py"]
|