improve initial commit

This commit is contained in:
Tchama 2021-02-18 18:50:06 +01:00
parent de5433b54c
commit f889b3a99c
3 changed files with 5 additions and 3 deletions

2
.gitignore vendored
View File

@ -1,4 +1,4 @@
# Comment if you want include Symfony project
# Comment to include Symfony project
app
# Ignore Database datas

View File

@ -49,9 +49,10 @@ Disclaimer: This project has been generated on phpdocker.io
* Build containers: `docker-compose build`
* Run containers: `docker-compose up -d`
* Manually change owner of app dir (temp): `sudo chown 1000:1000 app/`
* Enter in php container `docker-compose exec --user 1000 php bash`
* Install Symfony: `composer create-project symfony/skeleton symfony`
* Move project in parent (app): `mv symfony/* . && mv symfony/.* . && rm -Rf symfony`
* Move project in parent (app): `mv symfony/* . && mv symfony/.* . ; rmdir symfony`
* Add Symfony requirements:
```
composer require annotations

View File

@ -53,8 +53,9 @@ RUN { \
# Install composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
WORKDIR "/var/www/app"
# Add users/groups with uid 1000
RUN groupadd --gid ${GID} "group${GID}" \
&& useradd --uid ${UID} --gid ${GID} --create-home "user${UID}"
WORKDIR "/var/www/app"