14 lines
147 B
Docker
14 lines
147 B
Docker
FROM golang:latest
|
|
|
|
WORKDIR /app
|
|
|
|
COPY go.mod .
|
|
COPY go.sum .
|
|
|
|
RUN go mod download
|
|
|
|
COPY server_run.go .
|
|
|
|
RUN go build -o myapp
|
|
|
|
CMD ["/app/myapp"] |