# Deploy python discord bot

**URL:** <https://community.fly.io/t/deploy-python-discord-bot/5667>\
**Category:** Questions / Help\
**Created:** [June 16, 2022, 8:42am UTC](https://community.fly.io/t/deploy-python-discord-bot/5667 "2022-06-16T08:42:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ellin](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/ellin/32/4060_2.png) [@Ellin](https://community.fly.io/u/Ellin)\
**Post date:** [June 16, 2022, 8:42am UTC](https://community.fly.io/t/deploy-python-discord-bot/5667/1 "2022-06-16T08:42:07Z")

</div>

I’d like to deploy a Discord bot written in python. As read [here](https://community.fly.io/t/deploy-discord-bot-to-fly/1866), I removed the [services] section of my fly.toml file.

```auto
# 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**

```auto
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**

```auto
worker: python influbot/main.py

```

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

---

<div class="post-metadata">

**Author:** ![cooperx86](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/cooperx86/32/48033_2.png) [@cooperx86](https://community.fly.io/u/cooperx86)\
**Post date:** [June 16, 2022, 11:24am UTC](https://community.fly.io/t/deploy-python-discord-bot/5667/2 "2022-06-16T11:24:09Z")

</div>

What error are you getting? Is `/app/influbot/main.py` definitely where `main.py` 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.
