Add Dockerfile
This commit is contained in:
parent
849454016d
commit
c2045fc580
1 changed files with 15 additions and 0 deletions
15
Dockerfile
Normal file
15
Dockerfile
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
FROM golang:alpine AS builder
|
||||||
|
|
||||||
|
WORKDIR /go/src/git.zio.sh/telegram-approval-join
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN apk update && \
|
||||||
|
apk add --no-cache git bash && \
|
||||||
|
go get -d -v ./... && \
|
||||||
|
go install
|
||||||
|
|
||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
|
COPY --from=builder /go/bin/telegram-approval-join /usr/local/bin/telegram-approval-join
|
||||||
|
|
||||||
|
CMD ["telegram-approval-join"]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue