Initial commit

This commit is contained in:
2024-08-30 14:22:01 +02:00
commit 955bedb8f9
7 changed files with 244 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
FROM debian:12-slim AS builder
ADD url /app/
WORKDIR /app
RUN apt update && apt upgrade -y && apt install musl musl-dev && \
git clone https://github.com/richfelker/musl-cross-make.git && \
cd musl-cross-make && make && make install && cd .. && \
CGO_ENABLED=1 CC=musl-gcc GOOS=linux GOARCH=amd64 go build -a -ldflags '-extldflags "-static"' -o irc_bot
FROM alpine:3.20
WORKDIR /app
COPY --from=builder /app/irc_bot /app/
CMD ["irc_bot"]