Skip to content

Comments

Add Docker image file.#1

Open
logans-stuff wants to merge 1 commit intomainfrom
LoganNehrbass-patch-1-dockerfile
Open

Add Docker image file.#1
logans-stuff wants to merge 1 commit intomainfrom
LoganNehrbass-patch-1-dockerfile

Conversation

@logans-stuff
Copy link
Owner

This will allow this bot to be run in the node js docker container. To build just pull down the forked repository, move into the projects directory change the configuration file to the desired settings and to build the image run docker build -t name/twitter-image-bot . --no-cache. Then to run the docker run command would be

docker run -d \
  --name=dogbot \
  -e PUID=1000 \
  -e PGID=1000 \
  -v /opt/twitter-image-bot/images1:/images1 \
  -v /opt/twitter-image-bot/images2:/images1 \
  --restart unless-stopped \
  name/twitter-image-bot:latest

You can change images, add or remove if you keep the -v flags by navigating to /opt/twitter-image-bot/ to see those two image folders.

This will allow this bot to be run in the node js docker container. To build just pull down the forked repository, move into the projects directory change the configuration file to the desired settings and to build the image run "docker build -t name/twitter-image-bot . --no-cache". Then to run the docker run command would be 
docker run -d \
  --name=dogbot \
  -e PUID=1000 \
  -e PGID=1000 \
  -v /opt/twitter-image-bot/images1:/images1 \
  -v /opt/twitter-image-bot/images2:/images1 \
  --restart unless-stopped \
  name/twitter-image-bot:latest

You can change images, add or remove if you keep the -v flags by navigating to /opt/twitter-image-bot/ to see those two image folders.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant