LLMSearchEngine / Dockerfile
codelion's picture
Update Dockerfile
fdd6568 verified
raw
history blame
500 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 .
COPY static/ static/ # Add this line to copy the static folder
# 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"]