checkerpyresearch / Dockerfile
pyresearch's picture
Upload Dockerfile
949b879
raw
history blame contribute delete
796 Bytes
# Use an official Python runtime as a parent image
FROM python:3.9.13
# Set the working directory to /appchecker
WORKDIR /checkerpyresearch
# Copy the current directory contents into the container at /appchecker
COPY . /checkerpyresearch
# Upgrade pip
RUN pip install --upgrade pip
# Install system dependencies
RUN apt-get update && apt-get install -y \
tesseract-ocr \
tesseract-ocr-eng
# Install Python dependencies
RUN pip install -r requirements.txt
# Install a specific version of the Hugging Face Transformers library
RUN pip install transformers==4.15.0
# Add Tesseract to PATH
ENV PATH="/usr/bin/tesseract:${PATH}"
# Make port 8501 available to the world outside this container
EXPOSE 8501
# Run app.py when the container launches
CMD ["streamlit", "run", "app.py"]