added Dockerfile
This commit is contained in:
parent
005169f973
commit
cbdec85904
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
FROM golang:1.14.6-alpine3.12
|
||||||
|
|
||||||
|
RUN mkdir /src
|
||||||
|
|
||||||
|
ADD . /src
|
||||||
|
|
||||||
|
WORKDIR /src
|
||||||
|
|
||||||
|
RUN go mod download
|
||||||
|
RUN go build -o main .
|
||||||
|
|
||||||
|
CMD["/app/main"]
|
Loading…
Reference in New Issue
Block a user