feat: image generater support.

This commit is contained in:
GiriNeko 2025-09-02 17:33:23 +08:00
parent 099a79fe5f
commit e9b2033c3e
5 changed files with 133 additions and 347 deletions

View file

@ -4,6 +4,13 @@ WORKDIR /app
COPY . .
RUN pip install gunicorn && pip install -r requirements.txt
ENV BACKGROUND_URL = "https://www.loliapi.com/acg/"
ENV DEFAULT_ICON = "mcstatus_img/minecraft-creeper-face.png"
ENV FONT_PATH = "mcstatus_img/MiSans-Bold.ttf"
ENV IMAGE_WIDTH = 0
ENV IMAGE_HEIGHT = 0
EXPOSE 8000
CMD ["gunicorn", "-b", "0.0.0.0:8000", "app:app"]