the Docker stuff

This commit is contained in:
Holger Mürk 2023-02-15 19:54:04 +02:00
parent e0871842d2
commit 88e5a62fdb
2 changed files with 21 additions and 1 deletions

13
Dockerfile Normal file
View 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"]

View File

@ -1,3 +1,10 @@
# 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