CoolFace
Apppublic

Prashu15/FeedbackGenerator

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
Dockerfile37 linesDownload Raw Back to root
1FROM python:3.9-slim2 3# Install system dependencies4RUN apt-get update && apt-get install -y \5    tesseract-ocr \6    libtesseract-dev \7    nodejs \8    npm \9    && rm -rf /var/lib/apt/lists/*10 11WORKDIR /app12 13# Copy and install Python dependencies14COPY requirements.txt .15RUN pip install --no-cache-dir -r requirements.txt16 17# Copy and install Node.js dependencies18COPY package.json .19RUN npm install20 21# Copy Tailwind config and input CSS22COPY tailwind.config.js .23COPY static/input.css static/input.css24 25# Build Tailwind CSS26RUN npm run build:css27 28# Copy the rest of the application29COPY . .30 31# Ensure writable cache directory32RUN mkdir -p /tmp/hf_cache && chmod -R 777 /tmp/hf_cache33 34# Expose port35EXPOSE 786036 37CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]