apifal / Dockerfile
jerrrycans's picture
Create Dockerfile
1a89a63 verified
raw
history blame contribute delete
308 Bytes
# Use Python 3.12 (standard for 2026)
FROM python:3.12-slim
WORKDIR /app
# Copy and install requirements
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the script
COPY main.py .
# Hugging Face Spaces run on port 7860
EXPOSE 7860
# Run the app
CMD ["python", "main.py"]