better docker

This commit is contained in:
2026-03-11 13:22:09 -04:00
committed by kira
parent fe7b30908e
commit 81c5e916dc
3 changed files with 9 additions and 7 deletions
+3 -1
View File
@@ -1,3 +1,5 @@
node_modules
.git
config.json
state.json
config.json
avatars
+5 -5
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"]
+1 -1
View File
@@ -3,4 +3,4 @@ services:
restart: unless-stopped
build: .
volumes:
- ./config.json:/usr/src/bot/config.json
- ./config.json:/app/config.json