-
Notifications
You must be signed in to change notification settings - Fork 710
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sai Teja Madha
committed
Jul 15, 2023
1 parent
9d4c0dd
commit 3dc9f99
Showing
4 changed files
with
26 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
.DS_Store | ||
node_modules/ | ||
.git/ | ||
.vscode/ | ||
docs/ | ||
*.log | ||
*.tar.gz | ||
*.tar | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,32 @@ | ||
# Base image | ||
FROM node:16-alpine | ||
|
||
# Set the working directory in the container | ||
WORKDIR /usr/src/app | ||
|
||
# Copy package.json and package-lock.json to the container | ||
COPY package*.json ./ | ||
|
||
# Install only production dependencies | ||
RUN npm ci --omit=dev | ||
|
||
# Bundle rest of the source code | ||
COPY . . | ||
|
||
EXPOSE 8080-8089 449 | ||
# Environment variables | ||
ENV BOT_TOKEN= | ||
ENV MONGO_CONNECTION= | ||
ENV ERROR_LOGS= | ||
ENV JOIN_LEAVE_LOGS= | ||
ENV BOT_SECRET= | ||
ENV SESSION_PASSWORD= | ||
ENV WEATHERSTACK_KEY= | ||
ENV STRANGE_API_KEY= | ||
ENV SPOTIFY_CLIENT_ID= | ||
ENV SPOTIFY_CLIENT_SECRET= | ||
|
||
# Expose port 8080 for dashboard | ||
EXPOSE 8080 | ||
|
||
# Define the command to run your Node.js application | ||
CMD [ "node", "bot.js" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters