Spaces:
Runtime error
Runtime error
File size: 693 Bytes
4ec80ee f37dfd4 948445e 4ec80ee f37dfd4 948445e 4ec80ee 948445e 4ec80ee f37dfd4 4ec80ee 948445e 4ec80ee 948445e 4ec80ee 948445e |
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 |
# Start with the official Python 3.10 base image
FROM python:3.10
# Install system dependencies including OpenSSL 1.1
RUN apt-get update && apt-get install -y \
libssl1.1 \
libssl-dev \
git \
git-lfs \
ffmpeg \
libsm6 \
libxext6 \
cmake \
rsync \
libgl1-mesa-glx \
curl \
nodejs \
&& rm -rf /var/lib/apt/lists/* \
&& git lfs install
# Set working directory
WORKDIR /home/user/app
# Copy the requirements.txt file into the container
COPY requirements.txt /tmp/requirements.txt
# Install Python dependencies
RUN pip install --no-cache-dir -r /tmp/requirements.txt
# Expose the port
EXPOSE 7860
# Run the app
CMD ["python", "app.py"]
|