FROM golang # Install libraries RUN go get \ github.com/gorilla/mux \ github.com/lib/pq # 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/manager src/*.go ENTRYPOINT ["./manager"] #FROM alpine:3 #RUN mkdir /workdir #COPY hosted /workdir/hosted #COPY --from=0 /workdir/manager . #CMD ["./manager"]