fix docker container config

This commit is contained in:
Tchama 2021-04-16 08:44:30 +02:00
parent f8cfbebd26
commit 72fd1cf02d
3 changed files with 10 additions and 2 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

@ -51,7 +51,7 @@ RUN { \
} >> /usr/local/etc/php/conf.d/date.ini } >> /usr/local/etc/php/conf.d/date.ini
# 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 # Symfony installer
RUN curl -sS https://get.symfony.com/cli/installer -o /usr/local/bin/installer | bash \ RUN curl -sS https://get.symfony.com/cli/installer -o /usr/local/bin/installer | bash \
@ -64,4 +64,11 @@ RUN curl -sS https://get.symfony.com/cli/installer -o /usr/local/bin/installer |
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"