| | # |
| | # FROM python:3.9 |
| | |
| | # |
| | # ENV PYTHONUNBUFFERED=1 \ |
| | |
| | |
| | # RUN pip install importlib-metadata |
| | |
| | # |
| | # RUN apt-get update && apt-get install -y \ |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | # |
| | # WORKDIR /app |
| | |
| | # |
| | # COPY . /app |
| | |
| | # |
| | # RUN pip install --no-cache-dir --upgrade pip |
| | # COPY requirements.txt . |
| | # RUN pip install --no-cache-dir -r requirements.txt |
| | |
| | # |
| | # EXPOSE 7860 |
| | |
| | # |
| | # CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |
| | |
| | |
| | |
| | # |
| | # FROM python:3.9-slim |
| | |
| | # |
| | # WORKDIR /app |
| | |
| | # |
| | # RUN apt-get update && apt-get install -y \ |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | # |
| | # RUN pip install --upgrade pip |
| | |
| | # |
| | # COPY . /app |
| | |
| | # |
| | # RUN pip install --no-cache-dir -r requirements.txt |
| | |
| | # |
| | # EXPOSE 7860 |
| | |
| | # |
| | # CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |
| | |
| | |
| | # |
| | # FROM python:3.9-slim |
| | |
| | # |
| | # WORKDIR /app |
| | |
| | # |
| | # RUN apt-get update && \ |
| | |
| | |
| | |
| | |
| | # |
| | # COPY requirements.txt . |
| | # RUN pip install --no-cache-dir -r requirements.txt |
| | |
| | # |
| | # COPY . . |
| | |
| | # |
| | # EXPOSE 7860 |
| | |
| | # |
| | # CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |
| | |
| | |
| | |
| | # Use the official Python image |
| | FROM python:3.9-slim |
| | |
| | # Set environment variables |
| | ENV PYTHONDONTWRITEBYTECODE 1 |
| | ENV PYTHONUNBUFFERED 1 |
| | |
| | # Install system dependencies |
| | RUN apt-get update && apt-get install -y --no-install-recommends \ |
| | gcc \ |
| | g++ \ |
| | make \ |
| | pkg-config \ |
| | libcairo2-dev \ |
| | libpango1.0-dev \ |
| | libpangocairo-1.0-0 \ |
| | python3-dev \ |
| | libffi-dev \ |
| | && rm -rf /var/lib/apt/lists/* |
| | |
| | # Set the working directory |
| | WORKDIR /app |
| | |
| | # Copy requirements file and install dependencies |
| | COPY requirements.txt . |
| |
|
| | RUN pip install --upgrade pip && \ |
| | pip install --no-cache-dir -r requirements.txt |
| | |
| | # Copy application code |
| | COPY . . |
| |
|
| | EXPOSE 7860 |
| | |
| | # Define the entrypoint (replace this with your command, e.g., flask or uvicorn) |
| | CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |
| |
|