Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +12 -5
Dockerfile
CHANGED
|
@@ -1,13 +1,20 @@
|
|
| 1 |
# Use a Python base image with system dependencies
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
| 4 |
-
# Install system dependencies
|
| 5 |
-
RUN apt-get update && apt-get install -y
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
-
# Set working directory
|
| 8 |
WORKDIR /app
|
| 9 |
|
| 10 |
-
# Copy requirements file
|
| 11 |
COPY requirements.txt /app/
|
| 12 |
|
| 13 |
# Upgrade pip and install dependencies
|
|
@@ -16,5 +23,5 @@ RUN pip install --upgrade pip setuptools wheel && pip install --no-cache-dir -r
|
|
| 16 |
# Copy all source files
|
| 17 |
COPY . /app
|
| 18 |
|
| 19 |
-
# Run your
|
| 20 |
CMD ["python", "app.py"]
|
|
|
|
| 1 |
# Use a Python base image with system dependencies
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
| 4 |
+
# Install system dependencies including CMake and build tools
|
| 5 |
+
RUN apt-get update && apt-get install -y \
|
| 6 |
+
cmake \
|
| 7 |
+
build-essential \
|
| 8 |
+
libssl-dev \
|
| 9 |
+
libffi-dev \
|
| 10 |
+
ffmpeg \
|
| 11 |
+
libsndfile1 \
|
| 12 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 13 |
|
| 14 |
+
# Set the working directory inside the container
|
| 15 |
WORKDIR /app
|
| 16 |
|
| 17 |
+
# Copy the requirements file
|
| 18 |
COPY requirements.txt /app/
|
| 19 |
|
| 20 |
# Upgrade pip and install dependencies
|
|
|
|
| 23 |
# Copy all source files
|
| 24 |
COPY . /app
|
| 25 |
|
| 26 |
+
# Run your application (Replace `app.py` with your actual script)
|
| 27 |
CMD ["python", "app.py"]
|