Fix ssh for erpnext

This commit is contained in:
PAlexanderFranklin 2024-03-20 13:14:58 -07:00
parent 82aa5d9570
commit aceb7f9709

View File

@ -93,18 +93,19 @@ RUN apt-get update \
gcc \
build-essential \
libbz2-dev \
# for erpnext repo
openssh-client \
&& rm -rf /var/lib/apt/lists/*
USER frappe
ARG SSH_PRIVATE_KEY
RUN mkdir ~/.ssh/
RUN echo "${SSH_PRIVATE_KEY}" > ~/.ssh/id_ed25519
COPY ~/.ssh ~/.ssh
RUN echo "StrictHostKeyChecking no" > ~/.ssh/config
ARG FRAPPE_BRANCH=version-15
ARG FRAPPE_PATH=https://github.com/frappe/frappe
ARG ERPNEXT_REPO=ssh://git@githaven.org:2222/Shiloh/brotherton-erpnext.git
ARG ERPNEXT_BRANCH=version-15
ARG ERPNEXT_BRANCH=production
RUN bench init \
--frappe-branch=${FRAPPE_BRANCH} \
--frappe-path=${FRAPPE_PATH} \