fix: create config directory in worker image (#1014)
* fix: add git to worker image * fix: create config directory in worker image
This commit is contained in:
parent
19c5e5099c
commit
009877d67c
@ -11,7 +11,7 @@ RUN apt-get update \
|
|||||||
|
|
||||||
RUN useradd -ms /bin/bash frappe
|
RUN useradd -ms /bin/bash frappe
|
||||||
USER frappe
|
USER frappe
|
||||||
RUN mkdir -p /home/frappe/frappe-bench/apps /home/frappe/frappe-bench/logs /home/frappe/frappe-bench/sites
|
RUN mkdir -p /home/frappe/frappe-bench/apps /home/frappe/frappe-bench/logs /home/frappe/frappe-bench/sites /home/frappe/frappe-bench/config
|
||||||
WORKDIR /home/frappe/frappe-bench
|
WORKDIR /home/frappe/frappe-bench
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
@ -73,7 +73,7 @@ ENV NVM_DIR=/home/frappe/.nvm
|
|||||||
ENV PATH ${NVM_DIR}/versions/node/v${NODE_VERSION}/bin/:${PATH}
|
ENV PATH ${NVM_DIR}/versions/node/v${NODE_VERSION}/bin/:${PATH}
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
# Setup Node lists
|
# Setup Node lists
|
||||||
&& apt-get install --no-install-recommends -y curl \
|
&& apt-get install --no-install-recommends -y curl git \
|
||||||
# NodeJS with NVM
|
# NodeJS with NVM
|
||||||
&& mkdir -p ${NVM_DIR} \
|
&& mkdir -p ${NVM_DIR} \
|
||||||
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash \
|
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash \
|
||||||
|
@ -6,8 +6,6 @@ APP=$1
|
|||||||
|
|
||||||
cd /home/frappe/frappe-bench
|
cd /home/frappe/frappe-bench
|
||||||
|
|
||||||
rm -rf "apps/$APP/.git"
|
|
||||||
|
|
||||||
env/bin/pip install -e "apps/$APP"
|
env/bin/pip install -e "apps/$APP"
|
||||||
|
|
||||||
echo "$APP" >>sites/apps.txt
|
echo "$APP" >>sites/apps.txt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user