Initial Structure

This commit is contained in:
Dustin Pianalto
2020-09-08 20:23:52 -08:00
parent 3c63d0ece2
commit 6ade91132d
5 changed files with 121 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
FROM golang:1.14-alpine as dev
WORKDIR /go/src/dice
COPY ./go.mod .
#COPY ./go.sum .
RUN go mod download
COPY . .
RUN go install github.com/dustinpianalto/dice
CMD [ "go", "run", "main.go"]
from alpine
WORKDIR /bin
COPY --from=dev /go/bin/dice ./dice
CMD [ "dice" ]