File size: 985 Bytes
57846cf
8195f17
 
57846cf
58ee8f1
 
57846cf
 
58ee8f1
 
 
 
 
8195f17
57846cf
 
 
 
 
 
 
 
 
 
8195f17
 
58ee8f1
8195f17
 
 
 
 
 
 
 
58ee8f1
57846cf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Use a Python base image
FROM python:3.10-slim

# Install dependencies
RUN apt-get update && apt-get install -y \
    build-essential \
    software-properties-common \
    wget \
    libssl-dev \
    libffi-dev \
    ffmpeg \
    libsndfile1 \
    && rm -rf /var/lib/apt/lists/*

# Install the latest CMake manually
RUN wget https://github.com/Kitware/CMake/releases/download/v3.27.6/cmake-3.27.6-linux-x86_64.tar.gz \
    && tar -xzf cmake-3.27.6-linux-x86_64.tar.gz \
    && mv cmake-3.27.6-linux-x86_64 /opt/cmake \
    && ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake

# Verify CMake version
RUN cmake --version

# Set the working directory
WORKDIR /app

# Copy the requirements file
COPY requirements.txt /app/

# Upgrade pip and install dependencies
RUN pip install --upgrade pip setuptools wheel && pip install --no-cache-dir -r requirements.txt

# Copy all source files
COPY . /app

# Run your application (Replace `app.py` with your actual script)
CMD ["python", "app.py"]