This repository has been archived by the owner on Mar 6, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement: Build Docker image based on PHAR
- Loading branch information
1 parent
31dcf39
commit e137a33
Showing
2 changed files
with
13 additions
and
13 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 |
---|---|---|
|
@@ -4,16 +4,15 @@ LABEL "repository"="https://github.com/ergebnis/composer-normalize-action" | |
LABEL "homepage"="https://github.com/ergebnis/composer-normalize" | ||
LABEL "maintainer"="Andreas Möller <[email protected]>" | ||
|
||
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer | ||
|
||
ENV COMPOSER_ALLOW_SUPERUSER=1 | ||
|
||
RUN composer global require ergebnis/composer-normalize:2.2.0 --no-interaction --no-progress --no-suggest | ||
|
||
RUN mkdir /app | ||
|
||
WORKDIR /app | ||
|
||
ENTRYPOINT ["/usr/local/bin/composer", "normalize"] | ||
|
||
CMD ["--dry-run"] | ||
ENV VERSION=2.5.1 | ||
|
||
RUN apk add --no-cache gnupg \ | ||
&& cd /opt/ \ | ||
&& wget https://github.com/ergebnis/composer-normalize/releases/download/${VERSION}/composer-normalize.phar.asc \ | ||
&& wget https://github.com/ergebnis/composer-normalize/releases/download/${VERSION}/composer-normalize.phar \ | ||
&& gpg --yes --keyserver pool.sks-keyservers.net --recv-keys 0FDE18AE1D09E19F60F6B1CBC00543248C87FB13 \ | ||
&& gpg --yes --verify composer-normalize.phar.asc composer-normalize.phar \ | ||
&& chmod +x composer-normalize.phar \ | ||
&& mv composer-normalize.phar /usr/bin/composer-normalize | ||
|
||
ENTRYPOINT ["/usr/bin/composer-normalize"] |
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