aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-02-21 21:14:09 +0000
committerterminaldweller <thabogre@gmail.com>2021-02-21 21:14:09 +0000
commitc9876c40703b6723f94eea5638a0779c0550b2d7 (patch)
tree47e8946c2b7b47a35a96ba9b0d4341e3d5c83ede /Dockerfile
parentInitial commit (diff)
downloadhived-c9876c40703b6723f94eea5638a0779c0550b2d7.tar.gz
hived-c9876c40703b6723f94eea5638a0779c0550b2d7.zip
the price end point works, the telegram bot is only echo though
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"]