Initial structure

This commit is contained in:
Dustin Pianalto
2020-12-17 16:43:34 -09:00
parent df14091e04
commit e840f6b651
6 changed files with 213 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
FROM golang:1.14-alpine as dev
WORKDIR /go/src/Geeksbot
COPY ./go.mod .
COPY ./go.sum .
RUN go mod download
COPY . .
RUN go install github.com/dustinpianalto/geeksbot/...
CMD [ "go", "run", "cmd/geeksbot/main.go"]
from alpine
WORKDIR /bin
COPY --from=dev /go/bin/geeksbot ./geeksbot
CMD [ "geeksbot" ]