This repository has been archived on 2024-10-31. You can view files and clone it, but cannot push or open issues or pull requests.
feedpanel/Dockerfile
2018-11-13 14:50:03 +01:00

13 lines
482 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 ./... && 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/
COPY panelui/res/ /go/src/git.lattuga.net/boyska/feedpanel/panelui/res/
ENTRYPOINT ["./userpanel"]