-
Notifications
You must be signed in to change notification settings - Fork 11
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
14 changed files
with
155 additions
and
18 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
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,31 @@ | ||
# | ||
# NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh" | ||
# | ||
# PLEASE DO NOT EDIT IT DIRECTLY. | ||
# | ||
FROM php:8.3-alpine | ||
|
||
LABEL org.opencontainers.image.source="https://github.com/MilesChou/composer-action" \ | ||
repository="https://github.com/MilesChou/composer-action" \ | ||
maintainer="MilesChou <[email protected]>" | ||
|
||
RUN set -xe && \ | ||
apk add --no-cache \ | ||
git \ | ||
tini \ | ||
unzip | ||
|
||
ENV COMPOSER_ALLOW_SUPERUSER=1 \ | ||
COMPOSER_MEMORY_LIMIT=-1 \ | ||
COMPOSER_HOME=/tmp \ | ||
COMPOSER_PATH=/usr/bin/composer | ||
|
||
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer | ||
|
||
COPY docker-entrypoint /usr/local/bin/docker-entrypoint | ||
|
||
WORKDIR /app | ||
|
||
ENTRYPOINT ["/usr/local/bin/docker-entrypoint"] | ||
|
||
CMD ["composer"] |
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,26 @@ | ||
#!/bin/sh | ||
|
||
# Ref https://github.com/composer/docker/blob/582c6f4e10b6b8fbf9bc1c5b02d6ec24694fe8d4/2.0/docker-entrypoint.sh | ||
|
||
isCommand() { | ||
# Retain backwards compatibility with common CI providers, | ||
# see: https://github.com/composer/docker/issues/107 | ||
if [ "$1" = "sh" ]; then | ||
return 1 | ||
fi | ||
|
||
composer help "$1" > /dev/null 2>&1 | ||
} | ||
|
||
# check if the first argument passed in looks like a flag | ||
if [ "${1#-}" != "$1" ]; then | ||
set -- /sbin/tini -- composer "$@" | ||
# check if the first argument passed in is composer | ||
elif [ "$1" = 'composer' ]; then | ||
set -- /sbin/tini -- "$@" | ||
# check if the first argument passed in matches a known command | ||
elif isCommand "$1"; then | ||
set -- /sbin/tini -- composer "$@" | ||
fi | ||
|
||
exec "$@" |
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,8 @@ | ||
# | ||
# NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh" | ||
# | ||
# PLEASE DO NOT EDIT IT DIRECTLY. | ||
# | ||
FROM ghcr.io/mileschou/composer:8.3 | ||
|
||
CMD ["install"] |
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,36 @@ | ||
# | ||
# NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh" | ||
# | ||
# PLEASE DO NOT EDIT IT DIRECTLY. | ||
# | ||
FROM php:8.3-alpine | ||
|
||
LABEL org.opencontainers.image.source="https://github.com/MilesChou/composer-action" \ | ||
repository="https://github.com/MilesChou/composer-action" \ | ||
maintainer="MilesChou <[email protected]>" | ||
|
||
RUN set -xe && \ | ||
apk add --no-cache \ | ||
git \ | ||
tini \ | ||
unzip | ||
|
||
ENV COMPOSER_ALLOW_SUPERUSER=1 \ | ||
COMPOSER_MEMORY_LIMIT=-1 \ | ||
COMPOSER_HOME=/tmp \ | ||
COMPOSER_PATH=/usr/bin/composer | ||
|
||
COPY --from=composer:1 /usr/bin/composer /usr/bin/composer | ||
|
||
RUN set -xe && \ | ||
composer self-update --1 && \ | ||
composer global require hirak/prestissimo && \ | ||
composer clear-cache | ||
|
||
COPY docker-entrypoint /usr/local/bin/docker-entrypoint | ||
|
||
WORKDIR /app | ||
|
||
ENTRYPOINT ["/usr/local/bin/docker-entrypoint"] | ||
|
||
CMD ["composer"] |
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,26 @@ | ||
#!/bin/sh | ||
|
||
# Ref https://github.com/composer/docker/blob/582c6f4e10b6b8fbf9bc1c5b02d6ec24694fe8d4/2.0/docker-entrypoint.sh | ||
|
||
isCommand() { | ||
# Retain backwards compatibility with common CI providers, | ||
# see: https://github.com/composer/docker/issues/107 | ||
if [ "$1" = "sh" ]; then | ||
return 1 | ||
fi | ||
|
||
composer help "$1" > /dev/null 2>&1 | ||
} | ||
|
||
# check if the first argument passed in looks like a flag | ||
if [ "${1#-}" != "$1" ]; then | ||
set -- /sbin/tini -- composer "$@" | ||
# check if the first argument passed in is composer | ||
elif [ "$1" = 'composer' ]; then | ||
set -- /sbin/tini -- "$@" | ||
# check if the first argument passed in matches a known command | ||
elif isCommand "$1"; then | ||
set -- /sbin/tini -- composer "$@" | ||
fi | ||
|
||
exec "$@" |
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,8 @@ | ||
# | ||
# NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh" | ||
# | ||
# PLEASE DO NOT EDIT IT DIRECTLY. | ||
# | ||
FROM ghcr.io/mileschou/composer:8.3-v1 | ||
|
||
CMD ["install"] |
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 |
---|---|---|
|
@@ -3,6 +3,6 @@ | |
# | ||
# PLEASE DO NOT EDIT IT DIRECTLY. | ||
# | ||
FROM mileschou/composer:8.2 | ||
FROM mileschou/composer:8.3 | ||
|
||
CMD ["install"] |
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
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