mirror-ollama-twitch-bot/Dockerfile

20 lines
375 B
Text
Raw Permalink Normal View History

2024-03-03 00:07:33 +01:00
# Start from golang base image
FROM golang:alpine
# Setup folders
RUN mkdir /app
WORKDIR /app
# Copy the source from the current directory to the working Directory inside the container
COPY . .
COPY .env .
# Download all the dependencies
RUN go get -d -v ./...
# Build the Go app
2024-03-05 21:27:36 +01:00
RUN go build -o OllamaTwitchBot.out .
2024-03-03 00:07:33 +01:00
# Run the executable
2024-03-05 21:27:36 +01:00
CMD [ "./OllamaTwitchBot.out"]