2018-09-30 00:54:03 +02:00
|
|
|
FROM golang:1.11-alpine as builder
|
|
|
|
RUN apk --no-cache add git gcc musl-dev
|
2018-09-30 13:15:30 +02:00
|
|
|
WORKDIR /go/src/git.lattuga.net/boyska/feedpanel/
|
|
|
|
COPY ./ /go/src/git.lattuga.net/boyska/feedpanel/
|
2018-10-02 11:55:37 +02:00
|
|
|
ENV GO111MODULE=on
|
2018-12-18 00:03:59 +01:00
|
|
|
RUN go get github.com/codegangsta/gin && go get ./... && CGO_ENABLED=0 GOOS=linux go install ./...
|
|
|
|
CMD /go/bin/gin --all -p 8000 -d ./cmd/userpanel run
|
2018-09-30 00:54:03 +02:00
|
|
|
|
2018-12-18 00:03:59 +01:00
|
|
|
#FROM busybox
|
|
|
|
#WORKDIR /usr/bin/
|
|
|
|
#COPY --from=builder /go/bin/panelcli /usr/bin/
|
|
|
|
#COPY --from=builder /go/bin/userpanel /usr/bin/
|
|
|
|
#COPY --from=builder /go/bin/gin /usr/bin/
|
|
|
|
#COPY panelui/res/ /go/src/git.lattuga.net/boyska/feedpanel/panelui/res/
|
|
|
|
#ENTRYPOINT ["/go/bin/gin", "./cmd/userpanel"]
|