fruit-freshness-api / Dockerfile
lp128396's picture
Upload 6 files
13bf7e6 verified
raw
history blame contribute delete
317 Bytes
FROM python:3.9-slim
# Set working directory
WORKDIR /app
# Copy files
COPY . .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose the port Hugging Face expects
EXPOSE 7860
# Start the Flask app using Gunicorn
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]