mirror of
https://gitlab.durp.info/durfy/apps/durpot.git
synced 2026-05-07 16:00:33 -05:00
update dockerfile
This commit is contained in:
parent
802cb2d717
commit
3c6c5eb76f
1 changed files with 16 additions and 6 deletions
22
Dockerfile
22
Dockerfile
|
|
@ -1,7 +1,17 @@
|
||||||
FROM node:latest
|
FROM golang:latest
|
||||||
WORKDIR /usr/src/app
|
|
||||||
COPY package*.json ./
|
|
||||||
RUN npm install
|
|
||||||
COPY . /usr/src/app
|
|
||||||
CMD [ "node", "." ]
|
|
||||||
|
|
||||||
|
# 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"]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue