|
|
|
|
| FROM python:3.10
|
|
|
|
|
| ENV PYTHONDONTWRITEBYTECODE 1
|
| ENV PYTHONUNBUFFERED 1
|
|
|
|
|
| RUN apt-get update && apt-get install -y \
|
| wget \
|
| fontconfig \
|
| libfontconfig1 \
|
| libgl1 \
|
| libglib2.0-0 \
|
| libsm6 \
|
| libxext6 \
|
| libxrender1 \
|
| libasound2 \
|
| fonts-dejavu-core \
|
| fonts-liberation \
|
| fonts-noto-core \
|
| fonts-noto-extra \
|
| fonts-noto-color-emoji \
|
| libraqm0 \
|
| libfreetype6 \
|
| libfribidi0 \
|
| libharfbuzz0b \
|
| libprotobuf-dev \
|
| protobuf-compiler \
|
| && rm -rf /var/lib/apt/lists/*
|
|
|
|
|
| WORKDIR /app
|
|
|
|
|
| RUN mkdir -p assets && \
|
| wget -O assets/tahomabd.ttf "https://raw.githubusercontent.com/Esmaill1/color-stealer/main/tahomabd.ttf" && \
|
| wget -O assets/TYBAH.TTF "https://raw.githubusercontent.com/Esmaill1/color-stealer/main/TYBAH.TTF" && \
|
| wget -O assets/arialbd.ttf "https://raw.githubusercontent.com/Esmaill1/color-stealer/main/arialbd.ttf"
|
|
|
|
|
| COPY requirements.txt .
|
|
|
|
|
|
|
| RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
| COPY . .
|
|
|
|
|
| EXPOSE 7860
|
|
|
|
|
| CMD ["python", "web/server.py"]
|
|
|