Skip to content

Commit

Permalink
Merge branch 'main' into fix/installer-style
Browse files Browse the repository at this point in the history
  • Loading branch information
leocavalcante authored Feb 9, 2024
2 parents 5adb2a3 + a5b2bca commit 52c02c9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
ARG ALPINE=3.19
FROM alpine:${ALPINE}
ARG PHP
ARG HOST_USER
COPY rootfs /
RUN apk add --update --no-cache \
doas \
git \
docker-cli \
php${PHP}-cli \
Expand Down Expand Up @@ -34,11 +36,10 @@ RUN apk add --update --no-cache \
php${PHP}-pecl-xdebug \
&& ln -sf /usr/bin/php${PHP} /usr/bin/php \
&& mv /etc/php/php.ini /etc/php${PHP}/conf.d/zzphp.ini \
&& /usr/local/bin/install-tools
ARG HOST_USER
RUN apk add doas; \
adduser ${HOST_USER}; \
echo "${HOST_USER}" | chpasswd; \
echo "permit ${HOST_USER} as root" > /etc/doas.d/doas.conf
&& /usr/local/bin/install-tools \
&& adduser ${HOST_USER} \
&& echo "${HOST_USER}" | chpasswd \
&& echo "permit ${HOST_USER} as root" > /etc/doas.d/doas.conf \
&& stty -onocr
ENTRYPOINT [ "/usr/bin/php" ]
CMD [ "-v" ]
1 change: 1 addition & 0 deletions php.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sys_temp_dir = /tmp
1 change: 1 addition & 0 deletions src/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ run() {
-v /var/run/docker.sock:/var/run/docker.sock \
-v ~/.gitconfig:/root/.gitconfig:ro \
-v "$(pwd)":/usr/local/src -w /usr/local/src \
-v "$PHPCTL_DIR/php.ini:/etc/php$PHP_VERSION/conf.d/zphp.ini" \
$phpctl_ini \
$composer_home \
--net host --entrypoint sh \
Expand Down

0 comments on commit 52c02c9

Please sign in to comment.