Skip to content

Commit

Permalink
Install build tools for spryker frontend on non-amd64 architectures (…
Browse files Browse the repository at this point in the history
…#652)

e.g. for arm64, as some npm packages don't have prebuilt binaries for them
  • Loading branch information
andytson-inviqa committed Dec 16, 2021
1 parent 8c6e2e4 commit 0c1e6b6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docker/image/console/Dockerfile.twig
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ RUN chown -R build:build /home/build /app \
{{ install_extensions|join(" \\\n ") }}
{% endif %}

{% if @('frontend.build.distribution_packages') or @('backend.build.distribution_packages') %}
RUN apt-get update -qq \
&& DEBIAN_FRONTEND=noninteractive apt-get -qq -y --no-install-recommends install \
{{ @('frontend.build.distribution_packages') | default([]) | merge(@('backend.build.distribution_packages') | default([])) | join(' ') }} \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
{% endif %}

ENV APP_MODE={{ @('app.mode') }} \
APP_BUILD={{ @('app.build') }} \
ASSETS_DIR={{ @('assets.local') }}
Expand Down

0 comments on commit 0c1e6b6

Please sign in to comment.