Closed yosifkit closed 4 years ago
@skyred if you can spare some time to review this, it would be very much appreciated! :pray: :heart:
Thank you for asking. I will be happy to
Basically the same diff as before but the workdir is relatively one level up (to support RUN composer require ...
) and moved under /opt
.
diff -U 4 <(docker run -i --rm drupal:8.9 sh -c 'pwd; ls -a; echo; echo '../'; ls -a ../') <(docker run -i --rm drupal:8.9-new sh -c 'echo "$PWD/web"; ls -a web/; echo; echo './'; ls -a ./')
--- /dev/fd/63 2020-08-05 15:05:43.442129748 -0700
+++ /dev/fd/62 2020-08-05 15:05:43.443129771 -0700
@@ -1,20 +1,15 @@
-/var/www/html
+/opt/drupal/web
.
..
.csslintrc
-.editorconfig
.eslintignore
.eslintrc.json
-.gitattributes
.ht.router.php
.htaccess
INSTALL.txt
-LICENSE.txt
README.txt
autoload.php
-composer.json
-composer.lock
core
example.gitignore
index.php
modules
@@ -22,11 +17,15 @@
robots.txt
sites
themes
update.php
-vendor
web.config
-../
+./
.
..
-html
+.editorconfig
+.gitattributes
+composer.json
+composer.lock
+vendor
+web
Just copying the excellent use case/example from https://github.com/docker-library/drupal/pull/176#discussion_r465957418 so we don't lose it; this will make things like the following possible:
FROM drupal:8.9
RUN composer require 'drupal/paragraphs:^1.12'
Fixes #169 Closes #175
The
drupal/recommended-project
is adjusted to usehtml/
instead ofweb/
so there is no effect to8.8
and8.9
exceptvendor
(andcomposer.{json,lock}
) moving to/var/www
:New tags: