forked from miniflux/v2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build multi-platform images with Docker Buildx
- Loading branch information
Showing
5 changed files
with
41 additions
and
83 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM golang:alpine AS build | ||
RUN apk add --no-cache --update git | ||
ADD . /go/src/app | ||
WORKDIR /go/src/app | ||
RUN go generate | ||
RUN go build \ | ||
-o miniflux \ | ||
-ldflags="-s -w -X 'miniflux.app/version.Version=`git describe --abbrev=0`' -X 'miniflux.app/version.Commit=`git rev-parse --short HEAD`' -X 'miniflux.app/version.BuildDate=`date +%FT%T%z`'" \ | ||
main.go | ||
|
||
FROM alpine:latest | ||
ENV LISTEN_ADDR 0.0.0.0:8080 | ||
RUN apk --no-cache add ca-certificates tzdata | ||
COPY --from=build /go/src/app/miniflux /usr/bin/miniflux | ||
USER nobody | ||
CMD ["/usr/bin/miniflux"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters