improve initial commit
This commit is contained in:
parent
de5433b54c
commit
f889b3a99c
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,4 +1,4 @@
|
|||||||
# Comment if you want include Symfony project
|
# Comment to include Symfony project
|
||||||
app
|
app
|
||||||
|
|
||||||
# Ignore Database datas
|
# Ignore Database datas
|
||||||
|
@ -49,9 +49,10 @@ Disclaimer: This project has been generated on phpdocker.io
|
|||||||
|
|
||||||
* Build containers: `docker-compose build`
|
* Build containers: `docker-compose build`
|
||||||
* Run containers: `docker-compose up -d`
|
* 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`
|
* Enter in php container `docker-compose exec --user 1000 php bash`
|
||||||
* Install Symfony: `composer create-project symfony/skeleton symfony`
|
* 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:
|
* Add Symfony requirements:
|
||||||
```
|
```
|
||||||
composer require annotations
|
composer require annotations
|
||||||
|
@ -53,8 +53,9 @@ 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
|
||||||
|
|
||||||
WORKDIR "/var/www/app"
|
|
||||||
|
|
||||||
# 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}"
|
||||||
|
|
||||||
|
WORKDIR "/var/www/app"
|
||||||
|
Loading…
Reference in New Issue
Block a user