thera-guide-ai / Dockerfile
Said Lfagrouche
Add Hugging Face Space configuration
6ca0914
raw
history blame
703 Bytes
FROM python:3.13-slim
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
WORKDIR /app
# Copy requirements file
COPY --chown=user requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir --upgrade -r requirements.txt
# Download NLTK data
RUN python -c "import nltk; nltk.download('punkt'); nltk.download('wordnet'); nltk.download('stopwords')"
# Create necessary directories
RUN mkdir -p data/users data/sessions data/conversations data/feedback
# Copy application files
COPY --chown=user . /app
# Expose the port Hugging Face Spaces expects
EXPOSE 7860
# Command to run the application
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]