Vlm-test / Dockerfile
mike23415's picture
Create Dockerfile
1211a77 verified
raw
history blame
505 Bytes
FROM python:3.10-slim
# Avoid interactive prompts during build
ENV DEBIAN_FRONTEND=noninteractive
# System dependencies
RUN apt-get update && apt-get install -y \
libglib2.0-0 libsm6 libxext6 libxrender-dev poppler-utils \
&& rm -rf /var/lib/apt/lists/*
# Create app directory
WORKDIR /app
# Copy files
COPY app.py requirements.txt ./
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose port for Hugging Face
EXPOSE 7860
# Run the app
CMD ["python", "app.py"]