Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +15 -5
Dockerfile
CHANGED
|
@@ -1,17 +1,27 @@
|
|
| 1 |
-
# Use a Python base image
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
| 4 |
-
# Install
|
| 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 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
WORKDIR /app
|
| 16 |
|
| 17 |
# Copy the requirements file
|
|
@@ -24,4 +34,4 @@ RUN pip install --upgrade pip setuptools wheel && pip install --no-cache-dir -r
|
|
| 24 |
COPY . /app
|
| 25 |
|
| 26 |
# Run your application (Replace `app.py` with your actual script)
|
| 27 |
-
CMD ["python", "app.py"]
|
|
|
|
| 1 |
+
# Use a Python base image
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
| 4 |
+
# Install dependencies
|
| 5 |
RUN apt-get update && apt-get install -y \
|
|
|
|
| 6 |
build-essential \
|
| 7 |
+
software-properties-common \
|
| 8 |
+
wget \
|
| 9 |
libssl-dev \
|
| 10 |
libffi-dev \
|
| 11 |
ffmpeg \
|
| 12 |
libsndfile1 \
|
| 13 |
&& rm -rf /var/lib/apt/lists/*
|
| 14 |
|
| 15 |
+
# Install the latest CMake manually
|
| 16 |
+
RUN wget https://github.com/Kitware/CMake/releases/download/v3.27.6/cmake-3.27.6-linux-x86_64.tar.gz \
|
| 17 |
+
&& tar -xzf cmake-3.27.6-linux-x86_64.tar.gz \
|
| 18 |
+
&& mv cmake-3.27.6-linux-x86_64 /opt/cmake \
|
| 19 |
+
&& ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake
|
| 20 |
+
|
| 21 |
+
# Verify CMake version
|
| 22 |
+
RUN cmake --version
|
| 23 |
+
|
| 24 |
+
# Set the working directory
|
| 25 |
WORKDIR /app
|
| 26 |
|
| 27 |
# Copy the requirements file
|
|
|
|
| 34 |
COPY . /app
|
| 35 |
|
| 36 |
# Run your application (Replace `app.py` with your actual script)
|
| 37 |
+
CMD ["python", "app.py"]
|