ReviewDispute/CompletePackage
0
1# Use the official Python image from Docker Hub2FROM python:3.9-slim3 4# Set the working directory5WORKDIR /app6 7# Install any necessary dependencies8COPY requirements.txt /app/9RUN pip install --no-cache-dir -r requirements.txt10 11# Set environment variable for Hugging Face cache12ENV TRANSFORMERS_CACHE=/tmp/huggingface_cache13 14# Copy the current directory contents into the container15COPY . /app/16 17# Run the application18CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]19 20 21# Install FastAPI, Uvicorn, and other dependencies22RUN pip install --no-cache-dir \23 fastapi \24 uvicorn \25 transformers \26 scikit-learn \27 gspread \28 oauth2client \29 pandas \30 beautifulsoup4 \31 requests \32 joblib # Include any other necessary libraries here33 34# Expose port for FastAPI app35EXPOSE 800036 37# Command to run the FastAPI app using Uvicorn38CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]39 40# Set the Hugging Face cache directory41ENV TRANSFORMERS_CACHE=/tmp/huggingface_cache