Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .docker/web-apps.bake.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ FROM web-base AS web-apps
ARG PRODUCT_VERSION
ARG BUILD_ROOT=/package

COPY web-apps/build/package*.json /app/build/
COPY web-apps/build/sprites/package*.json /app/build/sprites/
COPY web-apps/build/plugins/grunt-inline/ /app/build/plugins/grunt-inline/
COPY build/package*.json /app/build/
COPY build/sprites/package*.json /app/build/sprites/
COPY build/plugins/grunt-inline/ /app/build/plugins/grunt-inline/

RUN --mount=type=cache,target=/root/.npm \
cd app/build && \
npm install


COPY web-apps/ /app
COPY . /app

ENV PRODUCT_VERSION=${PRODUCT_VERSION}
ENV BUILD_ROOT=${BUILD_ROOT}

ARG TARGETARCH
RUN cd app/build && \
THEME=euro-office grunt $(if [ "$TARGETARCH" = "arm64" ]; then echo "--skip-imagemin"; fi)
THEME=euro-office grunt $(if [ "$TARGETARCH" = "arm64" ]; then echo "--skip-imagemin"; fi)