Update Dockerfile
Browse files- Dockerfile +8 -2
Dockerfile
CHANGED
|
@@ -2,11 +2,15 @@ FROM python:3.9-slim
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
-
# Install system dependencies
|
| 6 |
RUN apt-get update && apt-get install -y \
|
| 7 |
curl \
|
| 8 |
ffmpeg \
|
| 9 |
libsndfile1 \
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
# Create necessary directories
|
|
@@ -18,7 +22,9 @@ COPY requirements.txt .
|
|
| 18 |
# Install Python dependencies with dependency resolution
|
| 19 |
RUN pip install --upgrade pip
|
| 20 |
RUN pip install --no-cache-dir --upgrade setuptools wheel
|
| 21 |
-
|
|
|
|
|
|
|
| 22 |
|
| 23 |
# Copy application code
|
| 24 |
COPY app.py .
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
# Install system dependencies including build tools
|
| 6 |
RUN apt-get update && apt-get install -y \
|
| 7 |
curl \
|
| 8 |
ffmpeg \
|
| 9 |
libsndfile1 \
|
| 10 |
+
build-essential \
|
| 11 |
+
cmake \
|
| 12 |
+
gcc \
|
| 13 |
+
g++ \
|
| 14 |
&& rm -rf /var/lib/apt/lists/*
|
| 15 |
|
| 16 |
# Create necessary directories
|
|
|
|
| 22 |
# Install Python dependencies with dependency resolution
|
| 23 |
RUN pip install --upgrade pip
|
| 24 |
RUN pip install --no-cache-dir --upgrade setuptools wheel
|
| 25 |
+
|
| 26 |
+
# Install requirements with specific versions to avoid conflicts
|
| 27 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 28 |
|
| 29 |
# Copy application code
|
| 30 |
COPY app.py .
|