mirror of
https://github.com/the-programmers-hangout/swiftspiracy-bot.git
synced 2026-09-04 01:06:01 +02:00
16 lines
247 B
Docker
16 lines
247 B
Docker
FROM golang:alpine AS builder
|
|
RUN apk --update add ca-certificates git make bash
|
|
|
|
WORKDIR /app
|
|
COPY . ./
|
|
|
|
RUN go mod tidy
|
|
RUN make bot
|
|
|
|
FROM alpine
|
|
RUN apk --no-cache add ca-certificates
|
|
|
|
COPY --from=builder /app/bin/bot /bot
|
|
|
|
ENTRYPOINT ["/bot"]
|