✨ Add initial implementation and configuration files for Discord bot and dashboard
This commit is contained in:
20
code/discordbot-godispute/src/dashboard/Dockerfile
Normal file
20
code/discordbot-godispute/src/dashboard/Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
# Use the official Node.js image as the base image
|
||||
FROM node:22-slim
|
||||
|
||||
# Set the working directory inside the container
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package.json and package-lock.json to the working directory
|
||||
COPY package*.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm install
|
||||
|
||||
# Copy the rest of the application code to the working directory
|
||||
COPY . .
|
||||
|
||||
# Expose the port for the dashboard
|
||||
EXPOSE 8000
|
||||
|
||||
# Start the dashboard
|
||||
CMD ["npm", "run", "dev"]
|
||||
Reference in New Issue
Block a user