CoolFace
Apppublic

thecoderhere/jupiter-faq-bot

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
Dockerfile31 linesDownload Raw Back to root
1FROM python:3.92 3WORKDIR /app4 5# Create a writable cache directory6RUN mkdir -p /app/.cache && chmod 777 /app/.cache7 8# Set environment variables for cache9ENV HF_HOME=/app/.cache10ENV TRANSFORMERS_CACHE=/app/.cache/transformers11ENV SENTENCE_TRANSFORMERS_HOME=/app/.cache/sentence_transformers12ENV TORCH_HOME=/app/.cache/torch13 14# Install dependencies15COPY requirements.txt .16RUN pip install --no-cache-dir -r requirements.txt17 18# Download NLTK data19RUN python -c "import nltk; nltk.download('punkt'); nltk.download('stopwords')"20 21# Copy all files22COPY . .23 24# Create data directory if needed25RUN mkdir -p data26 27# Expose port28EXPOSE 786029 30# Run Flask app31CMD ["python", "run.py"]