mindtrack-backend / Dockerfile
Shivenduu's picture
Decalred the cache folder for the transformers
3d055d2
raw
history blame contribute delete
389 Bytes
# Base image
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Copy your code
COPY . /app
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Set Hugging Face cache to a writable folder
# /tmp is always writable in HF Spaces
ENV HF_HOME=/tmp/hf_cache
# Expose the Flask port for HF Spaces
EXPOSE 7860
# Start the Flask app
CMD ["python", "app.py"]