11 lines
355 B
Docker
11 lines
355 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/
|
|
RUN go build -v ./cmd/...
|
|
|
|
FROM scratch
|
|
WORKDIR /usr/bin/
|
|
COPY --from=builder /go/bin/panelcli /usr/bin/
|
|
COPY --from=builder /go/bin/userpanel /usr/bin/
|
|
ENTRYPOINT ["./userpanel"]
|