Skip to content

Commit

Permalink
add zip to php ext and remove .gitignore from arhive unpack
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-rendler-evozon committed Nov 12, 2019
1 parent 21357ee commit 7a4dd46
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
20 changes: 15 additions & 5 deletions .docker/docker/php/build.docker
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ RUN apt-get update \
ARG USERID=1000
ARG GROUPID=1000

RUN userdel -f www-data &&\
if getent group www-data ; then groupdel www-data; fi &&\
groupadd -g ${GROUPID} www-data &&\
useradd -l -u ${USERID} -g www-data www-data &&\
install -d -m 0755 -o www-data -g www-data /home/www-data
RUN userdel -f www-data && \
if getent group www-data ; then groupdel www-data; fi && \
groupadd -g ${GROUPID} www-data && \
useradd -l -u ${USERID} -g www-data www-data && \
install -d -m 0755 -o www-data -g www-data /home/www-data

USER www-data

Expand All @@ -35,4 +35,14 @@ RUN pecl install xdebug \
&& docker-php-ext-enable \
xdebug

RUN apt install -y \
zlib1g-dev \
libzip-dev

RUN docker-php-ext-install \
zip

RUN docker-php-ext-enable \
zip

USER www-data
Binary file added archive.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function download() {

function unpack() {
echo -e "Unpacking to local folder... \n"
tar -xf $TMPFILE --strip 1
tar -xf $TMPFILE --strip 1 --exclude=.gitignore
}

function prepDotEnv() {
Expand Down

0 comments on commit 7a4dd46

Please # to comment.