2
0
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:
Revant Nandgaonkar 2020-10-02 06:11:46 +05:30
parent 3c5f7d4426
commit 06b17048d3
2 changed files with 6 additions and 20 deletions

View File

@ -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

View File

@ -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