the Docker stuff
This commit is contained in:
parent
e0871842d2
commit
88e5a62fdb
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