the code
This commit is contained in:
parent
e0871842d2
commit
0a6159b428
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@ -0,0 +1,13 @@
|
||||
FROM golang:1.19-alpine
|
||||
|
||||
WORKDIR /usr/src/demoserver
|
||||
|
||||
COPY go.mod go.sum ./
|
||||
|
||||
RUN go mod download
|
||||
|
||||
COPY cmd/main.go ./cmd/main.go
|
||||
|
||||
RUN go build -o /usr/bin/server cmd/main.go
|
||||
|
||||
CMD ["/usr/bin/server"]
|
Loading…
Reference in New Issue
Block a user