Skip to content

Commit

Permalink
add build files
Browse files Browse the repository at this point in the history
  • Loading branch information
bachtran02 committed Mar 19, 2023
1 parent 449425f commit dd6d44e
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM python:3.10

COPY bot/ bot/
COPY requirements.txt requirements.txt
COPY .env .env

RUN pip install -r requirements.txt
CMD ["python", "-O", "-m", "bot" ]
6 changes: 6 additions & 0 deletions LavalinkServer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM openjdk:11-jre

COPY Lavalink.jar Lavalink.jar
COPY application.yaml application.yaml

CMD ["java", "-jar", "Lavalink.jar"]
19 changes: 19 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: '2.15'

services:
lavalink:
build:
context: ./LavalinkServer
dockerfile: Dockerfile
volumes:
- ./LavalinkServer/logs:/logs
expose:
- 2333

bot:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./logs:/logs

0 comments on commit dd6d44e

Please sign in to comment.