forked from boyska/feedpanel
15 lines
640 B
Docker
15 lines
640 B
Docker
FROM golang:1.11-alpine as builder
|
|
RUN apk --no-cache add git gcc musl-dev
|
|
WORKDIR /go/src/git.lattuga.net/boyska/feedpanel/
|
|
COPY ./ /go/src/git.lattuga.net/boyska/feedpanel/
|
|
ENV GO111MODULE=on
|
|
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
|
|
|
|
#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"]
|