From 0a6159b428a6c4d13f5ae0ed95ff217df194053a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20M=C3=BCrk?= Date: Wed, 15 Feb 2023 19:54:04 +0200 Subject: [PATCH] the code --- Dockerfile | 13 +++++++++++++ README.md | 9 ++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..28baff8 --- /dev/null +++ b/Dockerfile @@ -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"] \ No newline at end of file diff --git a/README.md b/README.md index 1a4aab9..7d65a27 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,10 @@ # Docker-Container-Demo -A quick demo to show off deployment of docker containers to Kubernetes \ No newline at end of file +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 + + +