aboutsummaryrefslogblamecommitdiffstats
path: root/telebot/Dockerfile
blob: 894b02eb83af57881c6ed0e0cabbe6423c93af1b (plain) (tree)
1
2
3
4
5
6
7
8
9
                           

                             



                                  
 
                                      
                                     


                                              
FROM alpine:3.13 as builder
RUN apk update && apk upgrade
RUN apk add go git
COPY go.* /telebot/
RUN cd /telebot && go mod download
COPY *.go /telebot/
RUN cd /telebot && go build

FROM gcr.io/distroless/static-debian10
COPY --from=certbuilder /cert/ /cert/
COPY --from=builder /telebot/telebot /telebot/
COPY ./docker-entrypoint.sh /telebot/
ENTRYPOINT ["/telebot/docker-entrypoint.sh"]