So I'm trying to host my friend's bot in my VPS and I'm using docker-compose to containerise his bot. His bot works if i run it on my host (i'm using linux, specifically fedora 36), so I tried to make it into a docker container with this code:
docker-compose.yml:
services:
susbot:
build:
context: .
dockerfile: Dockerfile
target: build
container_name: susbot
command: python ./susbot.py
Dockerfile:
FROM python:3 as build
COPY . /app
WORKDIR /app
FROM gcr.io/distroless/python
COPY --from=build-env /app /app
WORKDIR /app
CMD ["python", "./susbot.py"]
requirements.txt:
disnake==2.7.0
But when I try to run it by doing docker-compose up, It gives me the error in the image i've attached to this post
I assume it has to do with the python version I've set up to the docker image. Again, it works if i run it on my host machine by doing python susbot.py. idk anything about python lol I'm a c++ dev