mirror of
https://github.com/Murasame-Dev/McStatus-API.git
synced 2025-12-16 13:17:43 +00:00
feat: image generater support.
This commit is contained in:
parent
099a79fe5f
commit
e9b2033c3e
5 changed files with 133 additions and 347 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue