docker file update
This commit is contained in:
parent
12d29c66b9
commit
d918de0386
@ -2,10 +2,12 @@ FROM node:22
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Копируем только package.json и package-lock.json для установки зависимостей
|
||||||
COPY package*.json /app/
|
COPY package*.json /app/
|
||||||
COPY src/ /app/src/
|
|
||||||
#COPY db/shop.db /app/shop.db
|
|
||||||
|
|
||||||
|
# Устанавливаем зависимости
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
CMD ["node", "src/index.js"]
|
# Исходный код и другие файлы будут синхронизироваться через volume mounts
|
||||||
|
|
||||||
|
CMD ["node", "src/index.js"]
|
@ -1,17 +1,20 @@
|
|||||||
version: "3.3"
|
version: "3.3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
telegram_shop_prod:
|
telegram_shop_prod:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: ./Dockerfile
|
dockerfile: ./Dockerfile
|
||||||
hostname: telegram_shop_prod
|
hostname: telegram_shop_prod
|
||||||
container_name: telegram_shop_prod
|
container_name: telegram_shop_prod
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
- BOT_TOKEN=7626758249:AAEdcbXJpW1VsnJJtc8kZ5VBsYMFR242wgk
|
- BOT_TOKEN=7626758249:AAEdcbXJpW1VsnJJtc8kZ5VBsYMFR242wgk
|
||||||
- ADMIN_IDS=732563549,390431690,217546867
|
- ADMIN_IDS=732563549,390431690,217546867
|
||||||
- SUPPORT_LINK=https://t.me/neroworm
|
- SUPPORT_LINK=https://t.me/neroworm
|
||||||
- CATALOG_PATH=./catalog
|
- CATALOG_PATH=./catalog
|
||||||
volumes:
|
volumes:
|
||||||
- ./db:/app/db/
|
- ./db:/app/db/ # Синхронизация базы данных
|
||||||
|
- ./src:/app/src/ # Синхронизация исходного кода
|
||||||
|
- ./package.json:/app/package.json # Синхронизация package.json
|
||||||
|
- ./package-lock.json:/app/package-lock.json # Синхронизация package-lock.json
|
Loading…
Reference in New Issue
Block a user