Compare commits
2 Commits
master
...
symfony_in
Author | SHA1 | Date | |
---|---|---|---|
72fd1cf02d | |||
f8cfbebd26 |
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,5 +1,6 @@
|
||||
# Comment to include Symfony project
|
||||
app
|
||||
app/*
|
||||
!app/.keep
|
||||
|
||||
# Ignore Database datas
|
||||
data
|
||||
|
@ -53,9 +53,22 @@ RUN { \
|
||||
# Install 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
|
||||
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