Skip to content

Commit 42c4b99

Browse files
authored
Merge pull request #96 from govCMS/bugfix/preserve-paas-scaffold-modules
Preserve scaffold modules in PaaS
2 parents eae74c6 + 2e3d8fb commit 42c4b99

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.docker/Dockerfile.paas

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ ARG GOVCMS_GITHUB_TOKEN
1212
ENV WEBROOT=web
1313

1414
# Clean up base image so as not to conflict with any changes.
15-
RUN rm -rf /app
15+
RUN mv /app/web/sites/all/modules /scaffold_modules \
16+
&& rm -rf /app
1617

1718
RUN composer config --global github-oauth.github.com $GOVCMS_GITHUB_TOKEN
1819

@@ -22,6 +23,8 @@ COPY custom /app/custom
2223

2324
# Run composer. Additional `rm`s can be added to reduce the image size, with diminishing returns.
2425
RUN composer install --no-dev --no-interaction --no-suggest \
26+
&& mkdir -p /app/web/sites/all \
27+
&& mv /scaffold_modules /app/web/sites/all/modules \
2528
&& rm -rf ~/.composer/cache \
2629
&& rm -rf /app/web/core/tests \
2730
&& rm -rf /app/web/modules/contrib/webform/tests

0 commit comments

Comments
 (0)