Healthy_GPT / dockerfile
rajsecrets0's picture
Update dockerfile
f98f285 verified
raw
history blame contribute delete
665 Bytes
# Use the official Python image as the base image
FROM python:3.10-slim
# Set the working directory in the container
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
poppler-utils \
libsm6 \
libxext6 \
&& rm -rf /var/lib/apt/lists/*
# Verify poppler installation
RUN which pdftoppm
# Copy the requirements file into the container
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application code into the container
COPY . .
# Set the default command for the container
CMD ["streamlit", "run", "app.py"]