-
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.
- Loading branch information
Showing
1 changed file
with
10 additions
and
12 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,26 +1,24 @@ | ||
FROM backplane/ghlatest as downloader | ||
|
||
RUN set -eux; \ | ||
mkdir -p /work/pgFormatter; \ | ||
cd /work/pgFormatter; \ | ||
ghlatest download --source --extract --rm darold/pgFormatter; \ | ||
mv /work/pgFormatter/* /work/pgFormatter/src | ||
FROM backplane/ghlatest as dl | ||
RUN ghlatest download --source --extract --rm darold/pgformatter | ||
RUN mv darold-pgFormatter-* src | ||
|
||
FROM perl:5-slim as builder | ||
ARG CHARSET=UTF-8 | ||
COPY --from=downloader /work/pgFormatter/src /src/ | ||
WORKDIR /work | ||
|
||
COPY --from=dl /work/src /work/src | ||
RUN set -eux; \ | ||
cd /src; \ | ||
cd src; \ | ||
perl Makefile.PL; \ | ||
make; \ | ||
make install; \ | ||
cd /; \ | ||
rm -rf /src; | ||
rm -rf /work | ||
|
||
FROM scratch | ||
COPY --from=builder / / | ||
|
||
ARG CHARSET=UTF-8 | ||
LABEL maintainer="Backplane BV <[email protected]>" | ||
COPY --from=builder / / | ||
|
||
# Add non-privileged user | ||
RUN set -eux; \ | ||
|