Miyaka/alertify-system2
0
1# Use Python 3.92FROM python:3.93 4# Set the working directory5WORKDIR /code6 7# Copy requirements and install dependencies8# We use the CPU-only version of PyTorch to keep it fast and light9COPY ./requirements.txt /code/requirements.txt10RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt11 12# Copy the rest of the application files13COPY . /code14 15# Create a writable directory for the database (SQLite requires this)16# Note: On the free tier, this DB resets if the app restarts!17RUN chmod 777 /code18 19# Tell Flask to run on port 7860 (Hugging Face's default port)20CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app", "--timeout", "120", "--workers", "1", "--threads", "8"]