diff --git a/.gitignore b/.gitignore index af48262..ce3d6ae 100644 --- a/.gitignore +++ b/.gitignore @@ -363,4 +363,7 @@ MigrationBackup/ FodyWeavers.xsd # typescript restrictions -dist/ \ No newline at end of file +dist/ + +# safety +env_variables.yaml \ No newline at end of file diff --git a/5a0b-bot.njsproj b/5a0b-bot.njsproj index 1751c0d..1e08d43 100644 --- a/5a0b-bot.njsproj +++ b/5a0b-bot.njsproj @@ -31,9 +31,7 @@ - - Code - + diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..861d4d4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM node:16 - alpine +RUN mkdir - p / usr / src / app +WORKDIR / usr / src / app +COPY. . +RUN npm install +RUN npm build +EXPOSE 3000 +CMD["npm", "start"] \ No newline at end of file diff --git a/app.yaml b/app.yaml deleted file mode 100644 index c5cb29f..0000000 --- a/app.yaml +++ /dev/null @@ -1 +0,0 @@ -runtime: nodejs16 \ No newline at end of file diff --git a/package.json b/package.json index 9e81870..9d5889f 100644 --- a/package.json +++ b/package.json @@ -5,15 +5,14 @@ }, "version": "0.0.0", "description": "Discord multifunctional bot", - "main": "app.js", + "main": "dist/app.js", "author": { "name": "unknowableshade" }, "scripts": { "build": "tsc --build", "clean": "tsc --build --clean", - "gcp-build": "tsc -p tsconfig.json", - "start": "node ./dist/app.js" + "start": "tsc && node dist/app.js" }, "dependencies": { "@discordjs/opus": "^0.6.0",