Deploy python discord bot

I’d like to deploy a Discord bot written in python. As read here, I removed the [services] section of my fly.toml file.

# fly.toml file generated for influbot on 2022-06-16T09:59:55+02:00

app = "influbot"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []

allowed_public_ports = []
auto_rollback = true

I also tried to configure my Dockerfile



RUN apt-get update && apt-get install -y \
    python3-pip \
    python3-venv \
    python3-dev \
    python3-setuptools \

RUN mkdir -p /app

COPY requirements.txt .
RUN pip install -r requirements.txt

COPY . .

CMD python influbot/

And tried to put a Procfile

worker: python influbot/

If someone is able to help me on this, it would be really delightful !

What error are you getting? Is /app/influbot/ definitely where is ending up? I would definitely be leaning heavily on any errors you’re seeing for the solution here.

BTW you can remove the RUN mkdir -p /app line as WORKDIR creates its specified directory anyway, and it’ll save a (very) little time on the build.