mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-23 19:21:04 +00:00
build: Publish Docker container
This commit is contained in:
25
Dockerfile
Normal file
25
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user