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"]
|
@ -1,3 +1,10 @@
|
|||||||
# Docker-Container-Demo
|
# Docker-Container-Demo
|
||||||
|
|
||||||
A quick demo to show off deployment of docker containers to Kubernetes
|
A quick demo to show off deployment of docker containers to Kubernetes
|
||||||
|
|
||||||
|
## how to use:
|
||||||
|
- build the container, run it, point some port to its 8080, eg `-p 8080:8080`
|
||||||
|
- do a http request via that port
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user