Don't install svg-sprite and sass node modules in nginx image on linux/arm64 (https://github.com/frappe/frappe/pull/15275)
This commit is contained in:
@@ -26,12 +26,7 @@ RUN yarn --cwd apps/frappe --prod
|
|||||||
FROM frappe_prod_node_modules as frappe_assets
|
FROM frappe_prod_node_modules as frappe_assets
|
||||||
|
|
||||||
# Install development node modules
|
# Install development node modules
|
||||||
RUN cd apps/frappe && \
|
RUN yarn --cwd apps/frappe
|
||||||
if [ "$(uname -m)" = "aarch64" ]; then \
|
|
||||||
yarn remove svg-sprite || true \
|
|
||||||
&& yarn add sass; \
|
|
||||||
fi \
|
|
||||||
&& yarn
|
|
||||||
|
|
||||||
# Build assets they're stored in frappe-bench/sites/assets
|
# Build assets they're stored in frappe-bench/sites/assets
|
||||||
RUN echo "frappe" >sites/apps.txt \
|
RUN echo "frappe" >sites/apps.txt \
|
||||||
|
|||||||
@@ -15,12 +15,7 @@ RUN mkdir -p sites/assets
|
|||||||
ARG FRAPPE_VERSION
|
ARG FRAPPE_VERSION
|
||||||
RUN git clone --depth 1 -b ${FRAPPE_VERSION} https://github.com/frappe/frappe apps/frappe
|
RUN git clone --depth 1 -b ${FRAPPE_VERSION} https://github.com/frappe/frappe apps/frappe
|
||||||
|
|
||||||
RUN cd apps/frappe \
|
RUN yarn --cwd apps/frappe
|
||||||
&& if [ "$(uname -m)" = "aarch64" ]; then \
|
|
||||||
yarn remove svg-sprite || true \
|
|
||||||
&& yarn add sass; \
|
|
||||||
fi \
|
|
||||||
&& yarn
|
|
||||||
|
|
||||||
|
|
||||||
ARG APP_NAME
|
ARG APP_NAME
|
||||||
|
|||||||
Reference in New Issue
Block a user