Merge pull request 'Upgrade Package and Dockerfile' (#2) from botJS into main

Reviewed-on: 42CTF/bot#2
This commit is contained in:
Starthur 2022-05-27 13:00:14 +02:00
commit 0bfe594371
3 changed files with 1124 additions and 1291 deletions

View File

@ -1,10 +1,15 @@
FROM debian:9 FROM debian:9
ADD . /app/
WORKDIR /app
RUN apt-get update -yq \ RUN apt-get update -yq \
&& apt-get install curl gnupg -yq \ && apt-get install curl gnupg -yq \
&& curl -sL https://deb.nodesource.com/setup_16.x | bash - \ && curl -sL https://deb.nodesource.com/setup_16.x | bash - \
&& apt-get install nodejs -yq \ && apt-get install nodejs -yq \
&& apt-get clean -y && apt-get clean -y \
ADD . /app/ && npm i
WORKDIR /app
CMD npm i && npm remove discord-api-types && npm i discord-api-types@0.27.2 && node bot.js
CMD node bot.js

2390
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +1,8 @@
{ {
"dependencies": { "dependencies": {
"@discordjs/rest": "^0.3.0", "@discordjs/rest": "*",
"discord-api-types": "^0.27.2", "discord-api-types": "*",
"discord.js": "^13.6.0", "discord.js": "*",
"npm": "^8.5.0" "npm": "*"
} }
} }