fruit-classifier / Dockerfile
nahinfarhan's picture
Update Dockerfile
2438873 verified
Raw History Blame Contribute Delete
535 Bytes
FROM python:3.9-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender-dev \
libgomp1 \
libgl1 \
libgtk-3-0 \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY . .
# Expose ports
EXPOSE 5000 8501
# Create startup script
COPY start.sh .
RUN chmod +x start.sh
CMD ["./start.sh"]