aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Dockerfile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..2848f6c
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,11 @@
+FROM alpine:3.13 as builder
+
+RUN apk update && apk upgrade
+RUN apk add go git
+RUN go get -u github.com/go-telegram-bot-api/telegram-bot-api
+COPY *.go /hived/
+RUN cd /hived && go build
+
+FROM alpine:3.13
+COPY --from=builder /hived/hived /hived/
+ENTRYPOINT ["/hived/hived"]