Skip to content

Commit

Permalink
new
Browse files Browse the repository at this point in the history
  • Loading branch information
appujet committed Oct 23, 2023
1 parent 3d2a6c3 commit e08710e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ WORKDIR /opt/lavamusic/

# Copy package files and install dependencies
COPY package*.json ./
RUN npm install
RUN apt-get update && \
apt-get install -y openssl && \
npm install

# Copy source code
COPY . .
Expand All @@ -25,7 +27,11 @@ WORKDIR /opt/lavamusic/

# Copy package files and install dependencies
COPY package*.json ./
RUN npm install --only=production
RUN apt-get update && \
apt-get install -y openssl && \
npm install --only=production

RUN npx prisma generate

# Copy compiled code
COPY --from=builder /opt/lavamusic/dist ./dist
Expand Down
9 changes: 5 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ services:
container_name: lavamusic
image: ghcr.io/brblacky/lavamusic:main
environment:
TOKEN: 'your bot token' # Your bot token
PREFIX: 'your bot prefix' # Your bot prefix
OWNER_IDS: 'your id' # Your id
CLIENT_ID: 'your bot id' # Your bot id
TOKEN: '' # Your bot token
PREFIX: '!' # Your bot prefix
OWNER_IDS: '959276033683628122' # Your id
CLIENT_ID: '875635121770889257' # Your bot id
GUILD_ID: '' # Your server Id if you want to use the for single server
PRODUCTION: 'true' # true for production
SEARCH_ENGINE: 'ytsearch' # ytsearch, scsearch or ytmsearch
Expand All @@ -57,6 +57,7 @@ services:
LAVALINK_AUTH: 'youshallnotpass' # Your lavalink password
LAVALINK_NAME: 'Blacky' # Your lavalink name
LAVALINK_SECURE: 'false' # true if you are using https
command: bash -c "apt-get update -y && apt-get install -y openssl && node dist/index.js"
restart: on-failure
depends_on:
- lavalink
Expand Down

0 comments on commit e08710e

Please sign in to comment.