FROM golang # Install libraries RUN go get \ github.com/gorilla/mux \ golang.org/x/net # Create workdir RUN mkdir /workdir WORKDIR /workdir # Copy our sources COPY src /workdir/src COPY hosted /workdir/hosted # and build them RUN go build -o /workdir/landingpage src/*.go ENTRYPOINT [ "/workdir/landingpage" ]