feat: switch to docker.io image

This commit is contained in:
Udit Karode 2023-05-05 13:10:57 +05:30
parent 8debe479be
commit 1eb84dd8dd
No known key found for this signature in database
GPG Key ID: 864BAA48465205F0
3 changed files with 3 additions and 10 deletions

View File

@ -6,4 +6,4 @@ services:
context: .. context: ..
dockerfile: .build/Dockerfile dockerfile: .build/Dockerfile
hostname: bing-tg hostname: bing-tg
image: git.shihaam.dev/dockerfiles/bing-chat-telegram

View File

@ -9,14 +9,7 @@ A Telegram bot that lets you interact with the Bing AI from chats that you allow
- Run `yarn dev` or `yarn build && yarn start` to start the bot. - Run `yarn dev` or `yarn build && yarn start` to start the bot.
**> To start using this project using Docker,** **> To start using this project using Docker,**
###### >> on dev - Obtain `docker-compose.yml` from this repository.
- Git clone and cd into cloned dir
- Run `docker compose -f .build/docker-compose.yml build` to build the container.
- Create a `.env` file or set environment variables according to the reference file `.env.example`
- Run `docker compose up -d` to start the bot.
- Run `docker compose -f .build/docker-compose.yml push` to push container to registry.
###### >> on prod
- Create `docker-compose.yml` with the content from `docker-compose.yml` in repo.
- Create `.env` with the required variables (see [.env.example](https://github.com/uditkarode/bing-chat-telegram/blob/master/.env.example)). - Create `.env` with the required variables (see [.env.example](https://github.com/uditkarode/bing-chat-telegram/blob/master/.env.example)).
- Run `docker compose up -d` to start the bot. - Run `docker compose up -d` to start the bot.

View File

@ -3,7 +3,7 @@ services:
######################### #########################
bing-tg: bing-tg:
hostname: bing-tg hostname: bing-tg
image: git.shihaam.dev/dockerfiles/bing-chat-telegram image: uditkarode/bing-chat-telegram
env_file: env_file:
- .env - .env
restart: always restart: always