Skip to content

Commit 397d14f

Browse files
committed
Finally add git to the PHP image
Apart from other uses, we need it because we are using composer with vcs-repo to be able to use own instaclick, instead of getting everything from packagist. That hits Github's API limits and required OAuth tokens or similar, easy to add locally, but not in CI envs like travis. So, only solution is to make the php containers able to use the git alternative. Apart from that, of course, having git within the images enables some more dev workflows and really doesn't weights much.
1 parent 374feae commit 397d14f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ ADD root/ /
44
# Fix the original permissions of /tmp, the PHP default upload tmp dir.
55
RUN chmod 777 /tmp && chmod +t /tmp
66

7+
# Install some packages that are useful within the images.
8+
RUN apt-get update && apt-get install -y \
9+
git \
10+
&& rm -rf /var/lib/apt/lists/*
11+
712
# Setup the required extensions.
813
ARG DEBIAN_FRONTEND=noninteractive
914
RUN /tmp/setup/php-extensions.sh

0 commit comments

Comments
 (0)