kleincordBot/Dockerfile

16 lines
317 B
Docker
Raw Permalink Normal View History

2024-05-03 22:05:35 +02:00
# Use an official Golang runtime as a parent image
FROM golang:latest
# Set the working directory to /app
WORKDIR .
COPY . .
# Download and install any required dependencies
RUN go mod download
# Build the Go app
RUN go build .
# Define the command to run the app when the container starts
CMD ["./kleincordBot"]