Create Dockerfile for bot
This commit is contained in:
parent
951117d181
commit
be67085ab1
3
.dockerignore
Normal file
3
.dockerignore
Normal file
@ -0,0 +1,3 @@
|
||||
dist
|
||||
downloads
|
||||
node_modules
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -132,3 +132,4 @@ dist
|
||||
## Custom
|
||||
config.js
|
||||
yt-dlp
|
||||
docker-compose.yml
|
||||
|
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@ -0,0 +1,13 @@
|
||||
FROM node:20-bookworm
|
||||
|
||||
WORKDIR /app
|
||||
COPY . /app
|
||||
|
||||
RUN ["npm", "install", "-g", "typescript"]
|
||||
RUN ["npm", "install"]
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
RUN ["apt", "update"]
|
||||
RUN ["apt", "install", "-y", "ffmpeg"]
|
||||
|
||||
ENTRYPOINT ["npm", "run", "start"]
|
9
docker-compose.example.yml
Normal file
9
docker-compose.example.yml
Normal file
@ -0,0 +1,9 @@
|
||||
services:
|
||||
musicbot:
|
||||
build: .
|
||||
container_name: MusicBot
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./config.js:/app/config.js:ro
|
||||
- ./downloads:/app/downloads
|
||||
|
Loading…
Reference in New Issue
Block a user