blob: 405fe2a627598c4b2b169f70235e90b7d73ee622 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
## 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"]
|