Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a Dockerfile and update README.md #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM golang:1.12
LABEL MAINTAINER="a nice guy"
WORKDIR $GOPATH/src/github.com/udhos/GOWEBHELLO
ADD . $GOPATH/src/github.com/udhos/GOWEBHELLO
RUN go build -o helloweb gowebhello/main.go

ENTRYPOINT ["./helloweb"]
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,15 @@ Find a small container image for gowebhello as `udhos/web-scratch` here:

https://hub.docker.com/r/udhos/web-scratch

#END
or modify the Dockerfile, and build your own custom image
```sh
git clone https://github.com/brownchow/gowebhello.git
cd gowebhello
docker build . -t udhos/web-scratch:v0.x
```
and run it
```sh
docker container run -p 8080:8080 udhos/gowebhello:v0.x
```

# END