13 lines
124 B
Docker
13 lines
124 B
Docker
|
FROM golang:1.19
|
||
|
|
||
|
WORKDIR /app
|
||
|
|
||
|
COPY go.mod go.sum ./
|
||
|
RUN go mod download
|
||
|
|
||
|
COPY . .
|
||
|
|
||
|
RUN go build -o main .
|
||
|
|
||
|
CMD ["./main"]
|