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

13 lines
411 B
Text
Raw Normal View History

2018-09-30 00:54:03 +02:00
FROM golang:1.11-alpine as builder
RUN apk --no-cache add git gcc musl-dev
2018-09-30 13:15:30 +02:00
WORKDIR /go/src/git.lattuga.net/boyska/feedpanel/
COPY ./ /go/src/git.lattuga.net/boyska/feedpanel/
2018-10-01 12:58:56 +02:00
ENV GO111MODULES=on
RUN go get ./... && CGO_ENABLED=0 GOOS=linux go install ./...
2018-09-30 00:54:03 +02:00
2018-09-30 13:47:55 +02:00
FROM busybox
2018-09-30 00:54:03 +02:00
WORKDIR /usr/bin/
COPY --from=builder /go/bin/panelcli /usr/bin/
2018-09-30 11:07:32 +02:00
COPY --from=builder /go/bin/userpanel /usr/bin/
2018-09-30 13:15:30 +02:00
ENTRYPOINT ["./userpanel"]