aboutsummaryrefslogtreecommitdiffstats
path: root/telebot
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-12-14 16:21:49 +0000
committerterminaldweller <thabogre@gmail.com>2021-12-14 16:21:49 +0000
commit472923260ae9a266bf118b76feac17689bf70172 (patch)
tree529853dfc6bf39b91bc1015b9b1f78c5c094f3a0 /telebot
parentgrpc for telebot. untested. [WIP] (diff)
downloadhived-472923260ae9a266bf118b76feac17689bf70172.tar.gz
hived-472923260ae9a266bf118b76feac17689bf70172.zip
grpc for telebot. untested. [WIP]telebot
Diffstat (limited to 'telebot')
-rw-r--r--telebot/Dockerfile9
1 files changed, 8 insertions, 1 deletions
diff --git a/telebot/Dockerfile b/telebot/Dockerfile
index 6051f08..8259880 100644
--- a/telebot/Dockerfile
+++ b/telebot/Dockerfile
@@ -6,7 +6,14 @@ RUN cd /telebot && go mod download
COPY *.go /telebot/
RUN cd /telebot && go build
-FROM gcr.io/distroless/static-debian10
+FROM node:lts-alpine3.13 as certbuilder
+RUN apk add openssl
+WORKDIR /certs
+RUN openssl req -nodes -new -x509 -subj="/C=US/ST=Denial/L=springfield/O=Dis/CN=localhost" -keyout server.key -out server.cert
+
+# FROM gcr.io/distroless/static-debian10
+FROM alpine:3.13
+COPY --from=certbuilder /certs /certs
COPY --from=builder /telebot/telebot /telebot/
COPY ./docker-entrypoint.sh /telebot/
ENTRYPOINT ["/telebot/docker-entrypoint.sh"]