lucifertrj
commited on
Create Docketfile
Browse files- Docketfile +23 -0
Docketfile
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.10
|
2 |
+
|
3 |
+
# Install system dependencies
|
4 |
+
RUN apt-get update && apt-get install -y \
|
5 |
+
python3-dev \
|
6 |
+
python3-pip \
|
7 |
+
python3-setuptools \
|
8 |
+
portaudio19-dev \
|
9 |
+
&& rm -rf /var/lib/apt/lists/*
|
10 |
+
|
11 |
+
WORKDIR /code
|
12 |
+
|
13 |
+
# Copy requirements first to leverage Docker cache
|
14 |
+
COPY requirements.txt .
|
15 |
+
|
16 |
+
# Install Python dependencies
|
17 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
18 |
+
|
19 |
+
# Copy the rest of the application
|
20 |
+
COPY . .
|
21 |
+
|
22 |
+
# Command to run the application
|
23 |
+
CMD ["python", "app.py"]
|