aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lee <andrew@alee14.me>2025-03-27 13:54:02 -0400
committerAndrew Lee <andrew@alee14.me>2025-03-27 13:54:02 -0400
commit966df0b6da48fccd739abb302fb24685614f7f5e (patch)
tree5dd8b7f42c6c970981c694c7aec6827921ba89d4
parent7b9a58cac0b59a73562d68540292e89f57bf30cf (diff)
downloadAleeBot-966df0b6da48fccd739abb302fb24685614f7f5e.tar.gz
AleeBot-966df0b6da48fccd739abb302fb24685614f7f5e.tar.bz2
AleeBot-966df0b6da48fccd739abb302fb24685614f7f5e.zip
Docker changes
-rw-r--r--bot/Dockerfile5
-rw-r--r--docker-compose.yml13
-rw-r--r--web/Dockerfile5
3 files changed, 15 insertions, 8 deletions
diff --git a/bot/Dockerfile b/bot/Dockerfile
index ae74f3a..aeda756 100644
--- a/bot/Dockerfile
+++ b/bot/Dockerfile
@@ -2,8 +2,11 @@ FROM oven/bun:latest
WORKDIR /bot
-COPY . .
+COPY bun.lockb .
+COPY package.json .
RUN bun install
+COPY . .
+
ENTRYPOINT ["bun", "start"]
diff --git a/docker-compose.yml b/docker-compose.yml
index 2f86485..b2d957d 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,15 +1,16 @@
services:
- aleebot:
- image: aleebot
- hostname: aleebot
+ bot:
+ image: ghcr.io/alee14/aleebot:4.0
+ hostname: bot
+ restart: unless-stopped
volumes:
- ./database.db:/bot/database.db
- ./.env:/bot/.env
ports:
- "3010:3010"
web:
- image: aleebot-web
- links:
- - "aleebot:aleebot"
+ image: ghcr.io/alee14/aleebot/web:4.0
+ hostname: web
+ restart: unless-stopped
ports:
- "3000:3000"
diff --git a/web/Dockerfile b/web/Dockerfile
index 0e548f7..0161342 100644
--- a/web/Dockerfile
+++ b/web/Dockerfile
@@ -2,10 +2,13 @@ FROM oven/bun:latest
WORKDIR /web
-COPY . .
+COPY bun.lockb .
+COPY package.json .
RUN bun install
+COPY . .
+
RUN bun run build
ENTRYPOINT ["bun", "start"]