Files
durpot/Dockerfile
2023-03-28 19:31:43 -05:00

18 lines
313 B
Docker

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="!"
ENV ChannelID=${ChannelID}
# Run the bot binary
CMD ["./bot"]