Initial commit

This commit is contained in:
2024-01-10 00:10:39 +01:00
commit 20c64e59ad
5 changed files with 334 additions and 0 deletions

22
Dockerfile Normal file
View File

@ -0,0 +1,22 @@
# Start from a Go base image
FROM golang:latest as builder
# Set the working directory
WORKDIR /app
# Copy the source code into the container
COPY . .
# Build the application
RUN go build -o mybot .
# Use a small base image
FROM alpine:latest
WORKDIR /root/
# Copy the binary from the builder stage
COPY --from=builder /app/mybot .
# Command to run the executable
CMD ["./mybot"]