mirror of
https://github.com/purofle/remake_bot.git
synced 2025-02-06 17:13:29 +08:00
16 lines
292 B
Docker
16 lines
292 B
Docker
FROM golang:latest as build
|
|
|
|
WORKDIR /src
|
|
|
|
COPY . .
|
|
|
|
RUN go mod tidy -v;CGO_ENABLED=0 go build -o /bot
|
|
|
|
FROM alpine:latest
|
|
WORKDIR /src
|
|
COPY --from=build /bot bot
|
|
COPY --from=build /src/countries.json countries.json
|
|
COPY --from=build /src/user_list.json user_list.json
|
|
|
|
CMD [ "/src/bot" ]
|