Dockerfile 640 B

123456789101112131415
  1. FROM golang:1.11-alpine as builder
  2. RUN apk --no-cache add git gcc musl-dev
  3. WORKDIR /go/src/git.lattuga.net/boyska/feedpanel/
  4. COPY ./ /go/src/git.lattuga.net/boyska/feedpanel/
  5. ENV GO111MODULE=on
  6. RUN go get github.com/codegangsta/gin && go get ./... && CGO_ENABLED=0 GOOS=linux go install ./...
  7. CMD /go/bin/gin --all -p 8000 -d ./cmd/userpanel run
  8. #FROM busybox
  9. #WORKDIR /usr/bin/
  10. #COPY --from=builder /go/bin/panelcli /usr/bin/
  11. #COPY --from=builder /go/bin/userpanel /usr/bin/
  12. #COPY --from=builder /go/bin/gin /usr/bin/
  13. #COPY panelui/res/ /go/src/git.lattuga.net/boyska/feedpanel/panelui/res/
  14. #ENTRYPOINT ["/go/bin/gin", "./cmd/userpanel"]