1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

Build RPM and Debian package with PIE mode enabled

This commit is contained in:
Frédéric Guillot 2021-09-25 15:52:32 -07:00 committed by fguillot
parent 1f3a9dabc2
commit 423e06cbe8
2 changed files with 2 additions and 6 deletions

View file

@ -1,11 +1,7 @@
FROM golang:1 AS build
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 --tags --abbrev=0`' -X 'miniflux.app/version.Commit=`git rev-parse --short HEAD`' -X 'miniflux.app/version.BuildDate=`date +%FT%T%z`'" \
main.go
RUN make miniflux
FROM centos:latest
RUN dnf install -y rpm-build