Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marcelo Silva
drupal9-docker-app
Commits
881185c1
Commit
881185c1
authored
Aug 11, 2020
by
Ricardo Amaro
Browse files
upgrade to 20.04
parent
522930b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
881185c1
FROM
ubuntu:
eoan
FROM
ubuntu:
20.04
MAINTAINER
Ricardo Amaro <mail_at_ricardoamaro.com>
ENV
DEBIAN_FRONTEND noninteractive
ARG
DRUPALVER=9.0.x
...
...
@@ -37,7 +37,7 @@ ADD https://updates.drupal.org/release-history/drupal/${DRUPALVER} /tmp/latest.x
# TODO: also require drupal/memcache
RUN
cd
/var/www/html
;
\
git clone
--depth
1
--single-branch
-b
${
DRUPALVER
}
https://git.drupalcode.org/project/drupal.git web
\
&&
cd
web
;
composer require drush/drush:
~10
;
composer
install
\
&&
cd
web
;
composer require drush/drush:
dev-master
;
composer
install
\
&&
php
--version
;
composer
--version
;
vendor/bin/drush
--version
;
vendor/bin/drush status
\
&&
cd
/var/www/html
;
chmod
a+w web/sites/default
;
\
mkdir
web/sites/default/files
;
chown
-R
www-data:www-data /var/www/html/
;
\
...
...
@@ -52,7 +52,7 @@ COPY ./files/foreground.sh /etc/apache2/foreground.sh
# Apache & Xdebug
RUN
rm
/etc/apache2/sites-available/000-default.conf /etc/apache2/sites-enabled/
*
ADD
./files/000-default.conf /etc/apache2/sites-available/000-default.conf
ADD
./files/xdebug.ini /etc/php/
7.3
/mods-available/xdebug.ini
ADD
./files/xdebug.ini /etc/php/
*
/mods-available/xdebug.ini
RUN
a2ensite 000-default
;
a2enmod rewrite vhost_alias
# Set some permissions
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment