build: Publish Docker container

This commit is contained in:
oSumAtrIX
2023-11-05 23:50:55 +01:00
parent 3b8e7ff568
commit e2781c52bc
7 changed files with 193 additions and 16 deletions

25
Dockerfile Normal file
View File

@@ -0,0 +1,25 @@
FROM node:latest
ENV WIT_AI_TOKEN $WIT_AI_TOKEN
ENV MONGODB_URI $MONGODB_URI
ENV DISCORD_TOKEN $DISCORD_TOKEN
# Create app directory and install dependencies
WORKDIR /usr/src/revanced-helper
COPY . .
RUN npm i
# Install the server
WORKDIR /usr/src/revanced-helper/apps/server/src
RUN npm i
# Install the client for the server
WORKDIR /usr/src/revanced-helper/packages/client
RUN npm i
# Install the bot
WORKDIR /usr/src/revanced-helper/apps/bot-discord/src
RUN npm i
WORKDIR /usr/src/revanced-helper
CMD ["npm", "run", "start"]