-
Notifications
You must be signed in to change notification settings - Fork 5
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
7bfd006
commit ba16883
Showing
2 changed files
with
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,11 @@ | ||
FROM php:8.0-cli | ||
FROM minicli/php81-dev:latest AS builder | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
git \ | ||
curl \ | ||
libxml2-dev \ | ||
zip \ | ||
unzip | ||
COPY . /home/minicli/ | ||
RUN cd /home/minicli && \ | ||
composer install --no-progress --no-dev --prefer-dist | ||
|
||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* | ||
FROM minicli/php81:latest | ||
COPY --from=builder /home/minicli /home/minicli | ||
|
||
# Install Composer and set up application | ||
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer | ||
RUN mkdir /application | ||
COPY . /application/ | ||
RUN cd /application && composer install | ||
|
||
ENTRYPOINT [ "php", "/application/minicli" ] | ||
ENTRYPOINT [ "php81", "/home/minicli/minicli" ] | ||
CMD ["update-contributors"] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.