Skip to content

Commit 040d3aa

Browse files
authored
Merge pull request #290 from infosiftr/cleanup
Drop Drupal 7 bits (non composer install)
2 parents 7eb8d68 + f9e60c2 commit 040d3aa

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

Dockerfile.template

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,10 @@ RUN { \
9494
} > /usr/local/etc/php/conf.d/docker-php-drupal-recommended.ini
9595

9696
{{ ) end -}}
97-
{{ if has("composer") then ( -}}
9897
COPY --from=composer:{{ .composer.version }} /usr/bin/composer /usr/local/bin/
9998

100-
{{ ) else "" end -}}
10199
# {{ .date | strftime("%Y-%m-%d") }}: {{ .notes }}
102100
ENV DRUPAL_VERSION {{ .version }}
103-
{{ if has("composer") then ( -}}
104101

105102
# https://github.com/docker-library/drupal/pull/259
106103
# https://github.com/moby/buildkit/issues/4503
@@ -122,16 +119,5 @@ RUN set -eux; \
122119
rm -rf "$COMPOSER_HOME"
123120

124121
ENV PATH=${PATH}:/opt/drupal/vendor/bin
125-
{{ ) else ( -}}
126-
ENV DRUPAL_URL {{ .url }}
127-
ENV DRUPAL_MD5 {{ .md5 }}
128-
129-
RUN set -eux; \
130-
curl -fSL "$DRUPAL_URL" -o drupal.tar.gz; \
131-
echo "${DRUPAL_MD5} *drupal.tar.gz" | md5sum -c -; \
132-
tar -xz --strip-components=1 -f drupal.tar.gz; \
133-
rm drupal.tar.gz; \
134-
chown -R www-data:www-data sites modules themes
135-
{{ ) end -}}
136122

137123
# vim:set ft=dockerfile:

0 commit comments

Comments
 (0)