12 lines
161 B
Docker
12 lines
161 B
Docker
|
FROM golang:alpine
|
||
|
|
||
|
# RUN mkdir /go/src/app
|
||
|
WORKDIR /go/src/app
|
||
|
|
||
|
COPY go.mod go.sum ./
|
||
|
COPY pkg ./
|
||
|
|
||
|
RUN go mod download
|
||
|
|
||
|
ENTRYPOINT ["go", "run", "pkg/main.go"]
|