Creating a docker image for Go [SOLVED]

It’s my first time using docker and I’d like to know how to get my first instance up and running. I look at the official repository for golang and run the general command for 1.8. I get errors with the go-wrapper similar to the comments it has on the side. It should be able to run any go app right ? How fancy can you get with docker?

FROM golang:1.8

WORKDIR /go/src/app
COPY . .

RUN go-wrapper download   # "go get -d -v ./..."
RUN go-wrapper install    # "go install -v ./..."

CMD ["go-wrapper", "run"] # ["app"]

What errors do you get with this Dockerfile?

It’s so embarassing I forgot to add a starting forward slash.

Can you post the working example please?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.