From 81c5e916dcfa1e579c0e24cc877dde104b56a343 Mon Sep 17 00:00:00 2001 From: Cesium Date: Tue, 10 Mar 2026 19:47:36 -0400 Subject: [PATCH] better docker --- .dockerignore | 4 +++- Dockerfile | 10 +++++----- docker-compose.yml.default | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.dockerignore b/.dockerignore index 204bd2e..e7d5a68 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,5 @@ node_modules .git -config.json \ No newline at end of file +state.json +config.json +avatars diff --git a/Dockerfile b/Dockerfile index e9373c5..359676b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file +COPY . . +CMD ["node", "index.js"] diff --git a/docker-compose.yml.default b/docker-compose.yml.default index 0a5edd5..a989153 100644 --- a/docker-compose.yml.default +++ b/docker-compose.yml.default @@ -3,4 +3,4 @@ services: restart: unless-stopped build: . volumes: - - ./config.json:/usr/src/bot/config.json \ No newline at end of file + - ./config.json:/app/config.json