update dockerfile
This commit is contained in:
22
Dockerfile
22
Dockerfile
@@ -1,7 +1,17 @@
|
||||
FROM node:latest
|
||||
WORKDIR /usr/src/app
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
COPY . /usr/src/app
|
||||
CMD [ "node", "." ]
|
||||
FROM golang:latest
|
||||
|
||||
# Set the working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the source code into the container
|
||||
COPY . .
|
||||
|
||||
# Build the Go binary
|
||||
RUN go build -o bot
|
||||
|
||||
# Set the DISCORD_BOT_TOKEN environment variable
|
||||
ENV TOKEN=${DISCORD_TOKEN}
|
||||
ENV BOTPREFIX="!"
|
||||
|
||||
# Run the bot binary
|
||||
CMD ["./bot"]
|
||||
Reference in New Issue
Block a user