SuperKartBackend / Dockerfile
SujayAery's picture
Upload folder using huggingface_hub
270b06d verified
# Use slim Python image
FROM python:3.9-slim
# Set working directory inside the container
WORKDIR /app
# Copy project files into the container
COPY . .
# Install dependencies and print package list to verify gunicorn is installed
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt \
&& echo "Installed packages:" \
&& pip list
# Expose the port Hugging Face expects
EXPOSE 7860
# Start the Flask app using gunicorn
# - app: refers to app.py
# - app: the Flask app object in app.py (corrected from rental_price_predictor_api)
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]