Too many questions for separate matters bundled into 1
I’ll help you separate them and answer accordingly
i have a (command line) twitch bot i made in c# (with twitchlib library)
so i was wondering if i remade it to work on linux but i have no clue how do i make a docker image for my program
No idea since i don’t do this. maybe someone else here can get into it. You probably should ask this on the docker forum?
I did a quick google/youtube search and found this. I’m sure you can search this yourself. This is a big ask to teach the entirety of this so not sure who has the time for that
and how do i install/set it up on my truenas scale system.
I’ll only touch on how to setup docker on truenas. i recommend you check out Stux’s video on setting up Jailmaker. This adds the jail base to be able to then install docker into it as a jail. Then you can install your docker container. I use dockge. Though you can install docker through commandline without use of dockge or portainer.
If you want troubleshoot for the exact steps, i mentioned the process in my journal
if you don’t want to wade through that and am fine figuring everything out on your own, stick to the official guides which are quick summaries
and the video stux linked above. he has 2 videos. one for the initial setup and the other for the networking portion
Not sure what level of understanding you have in regards to docker containers. Have you ever deployed a docker container? also have you editted a docker compose to deploy a docker container? These are easy things to do once you learn them. But if you are starting from scratch, you will need to learn on your own time because there is too much to cover. I recommend starting here
Some of what is mentioned in this videos you can ignore. For example install docker itself. Because you will be following Stux’s jailmaker guide for installing docker. This is the specific setup for truenas to get that to work.