bot init
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@ -0,0 +1,15 @@
|
||||
# Utilise Node.js LTS
|
||||
FROM node:20-slim
|
||||
|
||||
# Crée un dossier de travail
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Copie package.json et installe les deps
|
||||
COPY package*.json ./
|
||||
RUN npm install --only=production
|
||||
|
||||
# Copie le reste du code
|
||||
COPY . .
|
||||
|
||||
# Lance le bot
|
||||
CMD ["node", "bot.js"]
|
||||
Reference in New Issue
Block a user