better docker
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
node_modules
|
node_modules
|
||||||
.git
|
.git
|
||||||
|
state.json
|
||||||
config.json
|
config.json
|
||||||
avatars
|
avatars
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
FROM node:25
|
FROM node:25-alpine
|
||||||
RUN mkdir -p /usr/scr/bot
|
WORKDIR /app
|
||||||
WORKDIR /usr/src/bot
|
COPY package*.json ./
|
||||||
COPY . /usr/src/bot
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
COPY . .
|
||||||
CMD ["node", "index.js"]
|
CMD ["node", "index.js"]
|
||||||
@@ -3,5 +3,5 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
build: .
|
build: .
|
||||||
volumes:
|
volumes:
|
||||||
- ./config.json:/usr/src/bot/config.json
|
- ./config.json:/app/config.json
|
||||||
- ./avatars:/usr/src/bot/avatars
|
- ./avatars:/app/avatars
|
||||||
|
|||||||
Reference in New Issue
Block a user