Compare commits

...

2 Commits

Author SHA1 Message Date
72fd1cf02d fix docker container config 2021-04-16 09:24:07 +02:00
f8cfbebd26 add Symfony installer in php container 2021-04-16 08:37:21 +02:00
3 changed files with 15 additions and 1 deletions

3
.gitignore vendored
View File

@ -1,5 +1,6 @@
# Comment to include Symfony project # Comment to include Symfony project
app app/*
!app/.keep
# Ignore Database datas # Ignore Database datas
data data

0
app/.keep Normal file
View File

View File

@ -53,9 +53,22 @@ RUN { \
# Install composer # Install composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
# Symfony installer
RUN curl -sS https://get.symfony.com/cli/installer -o /usr/local/bin/installer | bash \
&& chmod a+x /usr/local/bin/installer \
&& /usr/local/bin/installer \
&& mv /root/.symfony/bin/symfony /usr/local/bin/symfony \
&& chmod a+x /usr/local/bin/symfony
# Add users/groups with uid 1000 # Add users/groups with uid 1000
RUN groupadd --gid ${GID} "group${GID}" \ RUN groupadd --gid ${GID} "group${GID}" \
&& useradd --uid ${UID} --gid ${GID} --create-home "user${UID}" && useradd --uid ${UID} --gid ${GID} --create-home "user${UID}"
USER ${UID}
RUN git config --global user.email "docker-php-master@champs-libres.coop" \
&& git config --global user.name "Docker PHP Master"
USER root
WORKDIR "/var/www/app" WORKDIR "/var/www/app"