15 lines
371 B
Docker
15 lines
371 B
Docker
# syntax=docker/dockerfile:1
|
|
|
|
FROM golang:latest AS bunny_build
|
|
WORKDIR /app
|
|
RUN git clone https://github.com/omgdanieltam/BunnyBot.git .
|
|
RUN go mod download
|
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o ./BunnyBot
|
|
|
|
FROM alpine:latest
|
|
WORKDIR /app
|
|
COPY --from=bunny_build /app/BunnyBot /app/BunnyBot
|
|
RUN chmod +x ./BunnyBot
|
|
COPY auth.json ./
|
|
CMD [ "./BunnyBot" ]
|