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 = []
[experimental]
allowed_public_ports = []
auto_rollback = true
I also tried to configure my Dockerfile
ARG PYTHON_VERSION=3.10.4
FROM python:${PYTHON_VERSION}
RUN apt-get update && apt-get install -y \
python3-pip \
python3-venv \
python3-dev \
python3-setuptools \
python3-wheel
RUN mkdir -p /app
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
CMD python influbot/main.py
And tried to put a Procfile
worker: python influbot/main.py
If someone is able to help me on this, it would be really delightful !