From 65c54046bffdb7cf514cfb141f056b425ad0601c Mon Sep 17 00:00:00 2001 From: Ahmed Ghazey Date: Fri, 28 Oct 2022 02:50:55 +0200 Subject: [PATCH] docker file added --- exercises/go-helloworld/DockerFile | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 exercises/go-helloworld/DockerFile diff --git a/exercises/go-helloworld/DockerFile b/exercises/go-helloworld/DockerFile new file mode 100644 index 000000000..12e09b29a --- /dev/null +++ b/exercises/go-helloworld/DockerFile @@ -0,0 +1,6 @@ +FROM golang:alpine +WORKDIR /go/src/app +ADD . . +RUN go mod init && go build -o helloworld +EXPOSE 6111 +CMD ["./helloworld"] \ No newline at end of file