Spaces:
Sleeping
Sleeping
File size: 594 Bytes
efeacc7 5ec3d4d efeacc7 5ec3d4d d0811d9 efeacc7 d0811d9 efeacc7 d0811d9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# Use the official lightweight Python image as a base
FROM python:3.10-slim
# Set the working directory inside the container
WORKDIR /app
# Copy the requirements file first for better caching
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the source code into the container
COPY src/ /app/src/
# Expose the port the app will run on (port 7860 is expected for Hugging Face Spaces)
EXPOSE 7860
# Set environment variables
ENV PYTHONUNBUFFERED=1
# Start the app when the container launches
CMD ["python", "src/search_engine/app.py"] |