Use podman

This commit is contained in:
Christer Warén 2024-01-31 12:37:17 +02:00
parent 32e77a54d5
commit 9c5b4c1540
2 changed files with 7 additions and 8 deletions

View File

@ -1,4 +1,4 @@
FROM node:20-alpine FROM docker.io/node:20-alpine
#Dependencies #Dependencies
RUN apk add --virtual .build-deps python3 make g++ gcc git RUN apk add --virtual .build-deps python3 make g++ gcc git

View File

@ -10,36 +10,35 @@ This bot is using Gitea repo to get radio stations from [playlist.json](https://
**Production** **Production**
``` ```
docker build -t warengroup/eximiabots-radiox:latest . --pull podman build -t warengroup/eximiabots-radiox:latest . --pull
``` ```
**Beta** **Beta**
``` ```
docker build -t warengroup/eximiabots-radiox:latest-beta . --pull podman build -t warengroup/eximiabots-radiox:latest-beta . --pull
``` ```
**Dev** **Dev**
``` ```
docker build -t warengroup/eximiabots-radiox:latest-dev . --pull podman build -t warengroup/eximiabots-radiox:latest-dev . --pull
``` ```
### 2. Run Container ### 2. Run Container
**Production** **Production**
``` ```
docker run --name radiox --net host -d -e DISCORD_TOKEN= -e STREAMER_MODE=auto -v "$PWD/datastore":/usr/src/app/datastore/ warengroup/eximiabots-radiox:latest podman run --name radiox -d -e DISCORD_TOKEN= -e STREAMER_MODE=auto -v "$PWD/datastore":/usr/src/app/datastore/ warengroup/eximiabots-radiox:latest
``` ```
**Beta** **Beta**
``` ```
docker run --name radiox --net host -d -e DISCORD_TOKEN= -e STREAMER_MODE=auto -v "$PWD/datastore":/usr/src/app/datastore/ warengroup/eximiabots-radiox:latest-beta podman run --name radiox -d -e DISCORD_TOKEN= -e STREAMER_MODE=auto -v "$PWD/datastore":/usr/src/app/datastore/ warengroup/eximiabots-radiox:latest-beta
``` ```
**Dev** **Dev**
``` ```
docker run --rm --name radiox-dev --net host -e DISCORD_TOKEN= -e DEV_MODE=true -v "$PWD":/usr/src/app/ warengroup/eximiabots-radiox:latest-dev podman run --rm --name radiox-dev -e DISCORD_TOKEN= -e DEV_MODE=true -v "$PWD":/usr/src/app/ warengroup/eximiabots-radiox:latest-dev
``` ```
## Join our Discord Server ## Join our Discord Server
https://discord.gg/rRA65Mn https://discord.gg/rRA65Mn