blob: 405fe2a627598c4b2b169f70235e90b7d73ee622 (
plain) (
tree)
|
|
## Build
FROM golang:1.19.3-alpine3.16 AS build
WORKDIR /app
COPY go.mod ./
COPY go.sum ./
RUN go mod download
COPY . .
RUN go build -o bot ./cmd/bot
RUN go build -o bash ./cmd/bash
## Deploy
FROM alpine:3.16
RUN apk add neofetch
WORKDIR /app
COPY --from=build /app/bot /app/bot
COPY --from=build /app/bash /app/bash
COPY db /app/db
CMD ["/app/bot"]
|