fix docker container config
This commit is contained in:
parent
f8cfbebd26
commit
72fd1cf02d
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,5 +1,6 @@
|
||||
# Comment to include Symfony project
|
||||
app
|
||||
app/*
|
||||
!app/.keep
|
||||
|
||||
# Ignore Database datas
|
||||
data
|
||||
|
@ -51,7 +51,7 @@ RUN { \
|
||||
} >> /usr/local/etc/php/conf.d/date.ini
|
||||
|
||||
# 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 \
|
||||
@ -64,4 +64,11 @@ RUN curl -sS https://get.symfony.com/cli/installer -o /usr/local/bin/installer |
|
||||
RUN groupadd --gid ${GID} "group${GID}" \
|
||||
&& 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"
|
||||
|
Loading…
Reference in New Issue
Block a user