fix(frappe-nginx): node-sass is part of prod dependencies
This commit is contained in:
parent
3c5f7d4426
commit
06b17048d3
@ -25,8 +25,12 @@ RUN mkdir -p apps sites/assets/css \
|
|||||||
&& cd apps \
|
&& cd apps \
|
||||||
&& git clone --depth 1 https://github.com/frappe/frappe --branch $GIT_BRANCH
|
&& git clone --depth 1 https://github.com/frappe/frappe --branch $GIT_BRANCH
|
||||||
|
|
||||||
COPY build/frappe-nginx/build.sh /build.sh
|
RUN cd /home/frappe/frappe-bench/apps/frappe \
|
||||||
RUN /build.sh
|
&& yarn \
|
||||||
|
&& yarn run production \
|
||||||
|
&& rm -fr node_modules \
|
||||||
|
&& yarn install --production=true
|
||||||
|
|
||||||
RUN node --version \
|
RUN node --version \
|
||||||
&& npm --version \
|
&& npm --version \
|
||||||
&& yarn --version
|
&& yarn --version
|
||||||
|
@ -1,18 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
function nodeCleanUp() {
|
|
||||||
rm -fr node_modules
|
|
||||||
yarn install --production=true
|
|
||||||
}
|
|
||||||
|
|
||||||
cd /home/frappe/frappe-bench/apps/frappe
|
|
||||||
yarn
|
|
||||||
yarn run production
|
|
||||||
|
|
||||||
if [[ "$GIT_BRANCH" =~ ^(version-12|version-11)$ ]]; then
|
|
||||||
nodeCleanUp
|
|
||||||
else
|
|
||||||
nodeCleanUp
|
|
||||||
# remove this when frappe framework moves this to dependencies from devDependencies
|
|
||||||
yarn add node-sass
|
|
||||||
fi
|
|
Loading…
x
Reference in New Issue
Block a user