mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-11-08 14:21:05 +00:00
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 \
|
||||
&& git clone --depth 1 https://github.com/frappe/frappe --branch $GIT_BRANCH
|
||||
|
||||
COPY build/frappe-nginx/build.sh /build.sh
|
||||
RUN /build.sh
|
||||
RUN cd /home/frappe/frappe-bench/apps/frappe \
|
||||
&& yarn \
|
||||
&& yarn run production \
|
||||
&& rm -fr node_modules \
|
||||
&& yarn install --production=true
|
||||
|
||||
RUN node --version \
|
||||
&& npm --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…
Reference in New Issue
Block a user