better docker

This commit is contained in:
2026-03-10 19:47:36 -04:00
parent d3cbd29482
commit 63cf36b845
3 changed files with 9 additions and 8 deletions

View File

@@ -1,4 +1,5 @@
node_modules
.git
state.json
config.json
avatars
avatars

View File

@@ -1,6 +1,6 @@
FROM node:25
RUN mkdir -p /usr/scr/bot
WORKDIR /usr/src/bot
COPY . /usr/src/bot
FROM node:25-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
CMD ["node", "index.js"]
COPY . .
CMD ["node", "index.js"]

View File

@@ -3,5 +3,5 @@ services:
restart: unless-stopped
build: .
volumes:
- ./config.json:/usr/src/bot/config.json
- ./avatars:/usr/src/bot/avatars
- ./config.json:/app/config.json
- ./avatars:/app/avatars