From dd6d44ec662e28df4aaf57ef78bcb32e3b6113ff Mon Sep 17 00:00:00 2001 From: Peter Tran Date: Sun, 19 Mar 2023 16:23:56 -0700 Subject: [PATCH] add build files --- Dockerfile | 8 ++++++++ LavalinkServer/Dockerfile | 6 ++++++ docker-compose.yml | 19 +++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 Dockerfile create mode 100644 LavalinkServer/Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..04c3444 --- /dev/null +++ b/Dockerfile @@ -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" ] \ No newline at end of file diff --git a/LavalinkServer/Dockerfile b/LavalinkServer/Dockerfile new file mode 100644 index 0000000..fb3b6f0 --- /dev/null +++ b/LavalinkServer/Dockerfile @@ -0,0 +1,6 @@ +FROM openjdk:11-jre + +COPY Lavalink.jar Lavalink.jar +COPY application.yaml application.yaml + +CMD ["java", "-jar", "Lavalink.jar"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..81ddda9 --- /dev/null +++ b/docker-compose.yml @@ -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 +