CXR / Dockerfile
shubham5524's picture
Update Dockerfile
0219b19 verified
raw
history blame
570 Bytes
# Use the full Python image, not slim
FROM python:3.10
# Set environment variables
ENV DEBIAN_FRONTEND=noninteractive
# Install OpenCV dependencies
RUN apt-get update && apt-get install -y \
libgl1 \
libglib2.0-0 \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
# Create app directory
WORKDIR /app
# Copy all files
COPY . /app
# Install Python dependencies
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
# Expose port (optional but good practice)
EXPOSE 7860
# Run the app (adjust according to your main file)
CMD ["python", "app.py"]