forked from boyska/feedpanel
add dockerfile
This commit is contained in:
parent
e488757455
commit
4bc6c09977
1 changed files with 10 additions and 0 deletions
10
Dockerfile
Normal file
10
Dockerfile
Normal file
|
@ -0,0 +1,10 @@
|
|||
FROM golang:1.11-alpine as builder
|
||||
RUN apk --no-cache add git gcc musl-dev
|
||||
WORKDIR /panel/
|
||||
COPY ./ /panel/
|
||||
RUN rm -rf /panel/vendor/ && go get ./... && CGO_ENABLED=0 GOOS=linux go install -v ./...
|
||||
|
||||
FROM scratch
|
||||
WORKDIR /usr/bin/
|
||||
COPY --from=builder /go/bin/panelcli /usr/bin/
|
||||
ENTRYPOINT ["./panelcli"]
|
Loading…
Reference in a new issue