-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Dockerfile + upgrade composer + upgrade php to 7.4 + fix
- Loading branch information
Showing
8 changed files
with
1,870 additions
and
740 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ tests/etc/parameters.yml | |
phpspec.yml | ||
phpunit.xml | ||
.php_cs.cache | ||
.php-cs-fixer.cache |
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,57 @@ | ||
FROM debian:bullseye-slim | ||
|
||
# Install some useful packages | ||
RUN apt-get update && \ | ||
apt-get --no-install-recommends --no-install-suggests --yes --quiet install \ | ||
apt-transport-https \ | ||
bash-completion \ | ||
ca-certificates \ | ||
curl \ | ||
git \ | ||
gnupg \ | ||
imagemagick \ | ||
less \ | ||
make \ | ||
perceptualdiff \ | ||
procps \ | ||
ssh-client \ | ||
sudo \ | ||
unzip \ | ||
vim \ | ||
wget && \ | ||
apt-get clean && apt-get --yes --quiet autoremove --purge && \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ | ||
/usr/share/doc/* /usr/share/groff/* /usr/share/info/* /usr/share/linda/* \ | ||
/usr/share/lintian/* /usr/share/locale/* /usr/share/man/* | ||
|
||
# Install PHP with some extensions | ||
RUN apt-get update && \ | ||
apt-get --no-install-recommends --no-install-suggests --yes --quiet install \ | ||
php7.4-cli \ | ||
php7.4-apcu \ | ||
php7.4-mbstring \ | ||
php7.4-curl \ | ||
php7.4-gd \ | ||
php7.4-imagick \ | ||
php7.4-intl \ | ||
php7.4-bcmath \ | ||
php7.4-xdebug \ | ||
php7.4-xml \ | ||
php7.4-zip && \ | ||
apt-get clean && apt-get --yes --quiet autoremove --purge && \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ | ||
/usr/share/doc/* /usr/share/groff/* /usr/share/info/* /usr/share/linda/* \ | ||
/usr/share/lintian/* /usr/share/locale/* /usr/share/man/* | ||
|
||
# Add a "docker" user | ||
RUN useradd docker --shell /bin/bash --create-home \ | ||
&& usermod --append --groups sudo docker \ | ||
&& echo 'ALL ALL = (ALL) NOPASSWD: ALL' >> /etc/sudoers \ | ||
&& echo 'docker:secret' | chpasswd | ||
|
||
WORKDIR /home/docker/ | ||
|
||
# Install composer | ||
COPY --from=composer:2 /usr/bin/composer /usr/local/bin/composer | ||
|
||
ENV PATH=bin:vendor/bin:$PATH |
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
Oops, something went wrong.