Spaces:
Build error
Build error
File size: 897 Bytes
ec615ea 0aeaa73 ec615ea 0aeaa73 ec615ea 0aeaa73 ec615ea | 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 38 | FROM python:3.9
# Add Intel RealSense repository
RUN apt-get update && apt-get install -y \
software-properties-common \
gnupg \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE \
&& add-apt-repository "deb https://librealsense.intel.com/Debian/apt-repo $(lsb_release -cs) main" \
&& apt-get update
# Install system dependencies
RUN apt-get install -y \
libgl1-mesa-glx \
libglib2.0-0 \
librealsense2-dkms \
librealsense2-utils \
librealsense2-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Set environment variables
ENV FLASK_APP=app.py
ENV FLASK_ENV=production
# Expose port
EXPOSE 7860
# Run the application
CMD ["python", "app.py"]
|