LLMSearchEngine / Dockerfile
codelion's picture
Create Dockerfile
73f9d3e verified
raw
history blame
437 Bytes
# Use official Python runtime as a parent image
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the app code
COPY app.py .
# Expose the port HF Spaces expects
EXPOSE 7860
# Set environment variable for Flask to run on the correct port
ENV PORT=7860
# Run the Flask app
CMD ["python", "app.py"]