1
0
Fork 0
forked from boyska/feedpanel
feedpanel/Dockerfile
2018-09-30 23:17:57 +02:00

11 lines
375 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 CGO_ENABLED=0 GOOS=linux go install ./...
FROM busybox
WORKDIR /usr/bin/
COPY --from=builder /go/bin/panelcli /usr/bin/
COPY --from=builder /go/bin/userpanel /usr/bin/
ENTRYPOINT ["./userpanel"]