remake_bot/Dockerfile

16 lines
292 B
Docker
Raw Normal View History

2024-02-14 22:32:38 +08:00
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
2024-05-12 13:22:56 +08:00
COPY --from=build /src/user_list.json user_list.json
2024-02-14 22:32:38 +08:00
CMD [ "/src/bot" ]