Skip to content
This repository has been archived by the owner on Aug 14, 2022. It is now read-only.

Using telebot v2 #45

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
FROM alpine:latest
RUN apk add --update ca-certificates
FROM golang:latest
lovung marked this conversation as resolved.
Show resolved Hide resolved

COPY ./default.tmpl /templates/default.tmpl
COPY ./alertmanager-bot /usr/bin/alertmanager-bot
# Set go bin which doesn't appear to be set already.
ENV GOBIN /go/bin

EXPOSE 8080
# build directories
RUN mkdir /app
RUN mkdir -p /go/src/github.com/vu-long/alertmanager-bot
ADD . /go/src/github.com/vu-long/alertmanager-bot
WORKDIR /go/src/github.com/vu-long/alertmanager-bot

ENTRYPOINT ["/usr/bin/alertmanager-bot"]
# Go dep!
RUN go get -u github.com/golang/dep/...
RUN dep ensure -v -vendor-only

RUN make build

EXPOSE 8080:8080

ENTRYPOINT ["/go/src/github.com/vu-long/alertmanager-bot/alertmanager-bot"]
Loading