diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..57d4589bb1b584892e2553fb433c25428c523b39 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM golang:latest + +# Set the Current Working Directory inside the container +WORKDIR /go/src/hello + +# Add all project files into the container +ADD . . + +# Build the Go app +RUN go build -o hello . + + +# This container exposes port 8999 +EXPOSE 8999 + +# Run the binary program produced by `go build` +CMD ["./hello"]