From 0f72fc1f4730d84ae8a41c44ca9b6964d9815de1 Mon Sep 17 00:00:00 2001 From: Abhi <85984486+AbhiTheModder@users.noreply.github.com> Date: Wed, 17 Apr 2024 08:59:25 +0530 Subject: [PATCH] Add files via upload --- Aptfile | 2 ++ Dockerfile | 2 +- Procfile | 2 +- cloud.sh | 17 +++++++++++++++++ 4 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 Aptfile create mode 100644 cloud.sh diff --git a/Aptfile b/Aptfile new file mode 100644 index 0000000..3191631 --- /dev/null +++ b/Aptfile @@ -0,0 +1,2 @@ +mediainfo +ffmpeg diff --git a/Dockerfile b/Dockerfile index 85dc760..22b4232 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,4 +3,4 @@ WORKDIR /app COPY . /app RUN apt -qq update && apt -qq install -y git wget ffmpeg mediainfo RUN pip install -r requirements.txt -CMD ["python", "main.py"] +CMD ["bash", "cloud.sh"] diff --git a/Procfile b/Procfile index 469ae06..ad9aac5 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: python3 main.py +web: bash cloud.sh diff --git a/cloud.sh b/cloud.sh new file mode 100644 index 0000000..71e5f16 --- /dev/null +++ b/cloud.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +echo """ + _ ____ ____ _ +/ \__/|/ _ \/ _ \/ \ /| +| |\/||| / \|| / \|| |\ || +| | ||| \_/|| \_/|| | \|| +\_/ \|\____/\____/\_/ \| + +Copyright (C) 2020-2023 by MoonTg-project@Github, < https://github.com/The-MoonTg-project >. +This file is part of < https://github.com/The-MoonTg-project/Moon-Userbot > project, +and is released under the "GNU v3.0 License Agreement". +Please see < https://github.com/The-MoonTg-project/Moon-Userbot/blob/main/LICENSE > +All rights reserved. +""" + +gunicorn app:app --daemon && python main.py \ No newline at end of file