apps-durpot/Dockerfile

19 lines
350 B
Text
Raw Normal View History

2023-03-28 19:25:02 -05:00
FROM golang:latest
2022-05-29 10:40:07 -05:00
2023-03-28 19:25:02 -05:00
# 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="!"
2023-03-28 19:31:43 -05:00
ENV ChannelID=${ChannelID}
2023-03-29 06:25:48 -05:00
ENV OPENAI_API_KEY=${OPENAI_API_KEY}
2023-03-28 19:25:02 -05:00
# Run the bot binary
CMD ["./bot"]