Spaces:
Build error
Build error
FROM python:3.9-slim | |
# Set the working directory inside the container | |
WORKDIR /app | |
# Copy all files from deployment_files into the container | |
COPY deployment_files/ ./ | |
# Install dependencies | |
RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
# Run the Flask app with Gunicorn | |
# Here: app.py is in deployment_files, Flask instance = store_sales_api | |
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:store_sales_api"] | |