-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
1 parent
fa00ca7
commit ca93692
Showing
10 changed files
with
69 additions
and
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM --platform=linux/amd64 php:8.2-cli-alpine | ||
|
||
# hadolint ignore=DL3022 | ||
COPY --chmod=755 --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/ | ||
RUN install-php-extensions zlib phar sodium tokenizer filter | ||
|
||
# hadolint ignore=DL3022 | ||
COPY --chmod=755 --from=composer/composer:2-bin /composer /usr/bin/composer | ||
|
||
COPY --chmod=755 bin/box.phar /box.phar | ||
|
||
RUN mkdir -p /local | ||
WORKDIR /local | ||
ENTRYPOINT ["/box.phar"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM --platform=linux/amd64 php:8.2-cli-alpine AS build-stage | ||
|
||
RUN apk add --update make git | ||
|
||
# hadolint ignore=DL3022 | ||
COPY --chmod=755 --from=composer/composer:2-bin /composer /usr/bin/composer | ||
|
||
RUN mkdir -p /opt/box-project/box | ||
WORKDIR /opt/box-project/box | ||
ADD . /opt/box-project/box | ||
RUN make compile | ||
|
||
FROM --platform=linux/amd64 php:8.2-cli-alpine | ||
|
||
# hadolint ignore=DL3022 | ||
COPY --chmod=755 --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/ | ||
RUN install-php-extensions zlib phar sodium tokenizer filter intl | ||
|
||
COPY --chmod=755 --from=build-stage /opt/box-project/box/bin/box.phar /usr/bin/box | ||
# hadolint ignore=DL3022 | ||
COPY --chmod=755 --from=composer/composer:2-bin /composer /usr/bin/composer | ||
|
||
RUN mkdir -p /local | ||
WORKDIR /local | ||
ENTRYPOINT ["/usr/bin/box"] |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM --platform=linux/amd64 php:8.2-cli-alpine as build-stage | ||
|
||
RUN apk add --update make git | ||
|
||
# hadolint ignore=DL3022 | ||
COPY --chmod=755 --from=composer/composer:2-bin /composer /usr/bin/composer | ||
|
||
RUN mkdir -p /opt/box-project/box | ||
WORKDIR /opt/box-project/box | ||
ADD . /opt/box-project/box | ||
RUN make compile | ||
|
||
FROM --platform=linux/amd64 php:8.2-cli-alpine | ||
|
||
# hadolint ignore=DL3022 | ||
COPY --chmod=755 --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/ | ||
RUN install-php-extensions zlib phar sodium tokenizer filter intl xdebug | ||
|
||
COPY --chmod=755 --from=build-stage /opt/box-project/box/bin/box.phar /usr/bin/box | ||
# hadolint ignore=DL3022 | ||
COPY --chmod=755 --from=composer/composer:2-bin /composer /usr/bin/composer | ||
|
||
RUN mkdir -p /local | ||
WORKDIR /local | ||
ENTRYPOINT ["/usr/bin/box"] |
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